From c9fd514bd652538b331d7ce1974be60ff1e713d2 Mon Sep 17 00:00:00 2001 From: paradoxuum Date: Sun, 4 Feb 2024 16:04:22 +0000 Subject: [PATCH] fix: assign command path to correct field --- src/client/interface/store/command/commandSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/interface/store/command/commandSlice.ts b/src/client/interface/store/command/commandSlice.ts index 1db8f41e..70a1dfb6 100644 --- a/src/client/interface/store/command/commandSlice.ts +++ b/src/client/interface/store/command/commandSlice.ts @@ -11,7 +11,7 @@ export const initialCommandState: CommandState = {}; export const commandSlice = createProducer(initialCommandState, { setCommand: (state, path?: ImmutableCommandPath) => ({ ...state, - command: path, + path, }), setArgIndex: (state, index?: number) => ({ ...state, argIndex: index }),