From 64dd7d62792e115bcae33bf5245f55e2baa2800f Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Wed, 31 Jul 2024 10:04:04 -0400 Subject: [PATCH] refactor --- frontend/src/store/project-store.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/store/project-store.ts b/frontend/src/store/project-store.ts index d35ba14..6bb2cdb 100644 --- a/frontend/src/store/project-store.ts +++ b/frontend/src/store/project-store.ts @@ -56,8 +56,9 @@ export const useProjectStore = create((set) => ({ typeof updater === "function" ? updater(state.generatedCode) : updater, })), - variants: [], currentVariantIndex: 0, + variants: [], + executionConsoles: {}, setCurrentVariantIndex: (index) => set({ currentVariantIndex: index }), setVariant: (code: string, index: number) => @@ -80,8 +81,6 @@ export const useProjectStore = create((set) => ({ }), resetVariants: () => set({ variants: [], currentVariantIndex: 0 }), - executionConsoles: {}, - appendExecutionConsole: (variantIndex: number, line: string) => set((state) => ({ executionConsoles: {