From d3cc15d15ea8e809ef2f5ae5c69b22f4eec0a869 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Mon, 10 Jun 2024 19:00:36 -0300 Subject: [PATCH] refactor: Remove unused imports and update GenericNode component --- src/frontend/src/CustomNodes/GenericNode/index.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 74acf5638..e27998c35 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -57,12 +57,7 @@ export default function GenericNode({ const updateNodeInternals = useUpdateNodeInternals(); const setErrorData = useAlertStore((state) => state.setErrorData); const isDark = useDarkStore((state) => state.dark); - const buildStatus = useFlowStore( - (state) => state.flowBuildStatus[data.id]?.status - ); - const lastRunTime = useFlowStore( - (state) => state.flowBuildStatus[data.id]?.timestamp - ); + const takeSnapshot = useFlowsManagerStore((state) => state.takeSnapshot); const [inputName, setInputName] = useState(false);