We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83a4761 commit c5c0f3dCopy full SHA for c5c0f3d
mock-api/msw/handlers.ts
@@ -585,13 +585,15 @@ export const handlers = makeHandlers({
585
auto_restart_enabled: true,
586
}
587
588
- setTimeout(() => {
589
- newInstance.run_state = 'starting'
590
- }, 1000)
+ if (body.start) {
+ setTimeout(() => {
+ newInstance.run_state = 'starting'
591
+ }, 1500)
592
593
- newInstance.run_state = 'running'
594
- }, 4000)
+ newInstance.run_state = 'running'
595
+ }, 4000)
596
+ }
597
598
db.instances.push(newInstance)
599
0 commit comments