From 70135e7353b35b12b83ffa7eed7e6d386e5c2a85 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 30 Mar 2024 17:51:55 -0300 Subject: [PATCH] Refactor onBuildComplete in flowStore.ts to include allNodesValid parameter --- src/frontend/src/stores/flowStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/stores/flowStore.ts b/src/frontend/src/stores/flowStore.ts index 15ee69169..bcc8f6309 100644 --- a/src/frontend/src/stores/flowStore.ts +++ b/src/frontend/src/stores/flowStore.ts @@ -529,9 +529,9 @@ const useFlowStore = create((set, get) => ({ onGetOrderSuccess: () => { setNoticeData({ title: "Running components" }); }, - onBuildComplete: () => { + onBuildComplete: (allNodesValid) => { const nodeId = startNodeId || stopNodeId; - if (nodeId) { + if (nodeId && allNodesValid) { setSuccessData({ title: `${ get().nodes.find((node) => node.id === nodeId)?.data.node