From 2d7837c22bca4e6fc7cbdaac2f25e13ce7771c86 Mon Sep 17 00:00:00 2001 From: Wojciech Kwiatek Date: Thu, 2 Jan 2025 08:33:40 +0100 Subject: [PATCH] Fix program loading via url (step not working) (#263) --- src/components/DebuggerControlls/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {