From bb42c773f2d6a8d70496c77c42ace4a3b0060fc0 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 24 Jan 2024 17:34:18 -0300 Subject: [PATCH] Fix formatting issues in GenericNode and useFlowStore --- src/frontend/src/CustomNodes/GenericNode/index.tsx | 2 +- src/frontend/src/stores/flowStore.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 2bdcece1b..4f065e8a4 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -349,7 +349,7 @@ export default function GenericNode({ )} {showNode && ( -
buildFlow(data.id)} > diff --git a/src/frontend/src/stores/flowStore.ts b/src/frontend/src/stores/flowStore.ts index e2691f742..01b4acaea 100644 --- a/src/frontend/src/stores/flowStore.ts +++ b/src/frontend/src/stores/flowStore.ts @@ -330,9 +330,9 @@ const useFlowStore = create((set, get) => ({ }); }, buildFlow: async (nodeId?: string) => { - const currentFlow = useFlowsManagerStore((state) => state.currentFlow); - const setSuccessData = useAlertStore((state) => state.setSuccessData); - const setErrorData = useAlertStore((state) => state.setErrorData); + const currentFlow = useFlowsManagerStore.getState().currentFlow; + const setSuccessData = useAlertStore.getState().setSuccessData; + const setErrorData = useAlertStore.getState().setErrorData; function handleBuildUpdate(data: any) { get().addDataToFlowPool(data.data[data.id], data.id); }