From a4c432a64beb7daeceb3fb4df90a44ae6f1b9dc6 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 22 Feb 2024 23:45:55 -0300 Subject: [PATCH] Move call to reset InactiveNodes to the end of the function --- src/frontend/src/utils/buildUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/utils/buildUtils.ts b/src/frontend/src/utils/buildUtils.ts index bcecf2e00..b11411229 100644 --- a/src/frontend/src/utils/buildUtils.ts +++ b/src/frontend/src/utils/buildUtils.ts @@ -50,7 +50,6 @@ export async function buildVertices({ useFlowStore.getState().updateBuildStatus(verticesIds, BuildStatus.TO_BUILD); useFlowStore.getState().updateVerticesBuild(verticesIds); useFlowStore.getState().setIsBuilding(true); - useFlowStore.getState().setInactiveNodes([]); // Set each vertex state to building const buildResults: Array = []; @@ -89,6 +88,7 @@ export async function buildVertices({ const allNodesValid = buildResults.every((result) => result); onBuildComplete(allNodesValid); useFlowStore.getState().setIsBuilding(false); + useFlowStore.getState().setInactiveNodes([]); } }