diff options
author | Sunil Shetye | 2025-05-19 12:12:12 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-05-19 12:15:20 +0530 |
commit | 911926294de36ce75c6022d021560522437ad323 (patch) | |
tree | 8354764c50c39a3f9fc83736a216b142e9768dc7 | |
parent | 7d8a638d391f335458551c53a57a3f82aa8f81d8 (diff) | |
download | Common-Interface-Project-911926294de36ce75c6022d021560522437ad323.tar.gz Common-Interface-Project-911926294de36ce75c6022d021560522437ad323.tar.bz2 Common-Interface-Project-911926294de36ce75c6022d021560522437ad323.zip |
move the dispatch to before the looping function
-rw-r--r-- | blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js index 3da6474d..206bc298 100644 --- a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js +++ b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js @@ -547,7 +547,6 @@ export default function SimulationScreen ({ open, close }) { createAffichDisplaytext(p, blockId) } - dispatch(setSimulating(true)) sse = new EventSource('/api/' + streamingUrl, { withCredentials: true }) sse.addEventListener('log', e => { ++loglines @@ -664,6 +663,7 @@ export default function SimulationScreen ({ open, close }) { return } + dispatch(setSimulating(true)) const getUrl = 'simulation/status/' + taskId const getStreamingUrl = 'simulation/streaming/' + taskId |