diff --git a/src/components/DebuggerControlls/index.tsx b/src/components/DebuggerControlls/index.tsx index 423a7ba..1fa9c06 100644 --- a/src/components/DebuggerControlls/index.tsx +++ b/src/components/DebuggerControlls/index.tsx @@ -43,10 +43,10 @@ export const DebuggerControlls = () => { try { if (!currentInstruction) { await dispatch(setAllWorkersCurrentState(initialState)); - } else { - await dispatch(stepAllWorkers()).unwrap(); } + await dispatch(stepAllWorkers()).unwrap(); + dispatch(setIsProgramEditMode(false)); } catch (error) { if (error instanceof Error || isSerializedError(error)) {