Refactor onBuildComplete in flowStore.ts to include allNodesValid parameter
This commit is contained in:
parent
f381d0f065
commit
70135e7353
1 changed files with 2 additions and 2 deletions
|
|
@ -529,9 +529,9 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
||||||
onGetOrderSuccess: () => {
|
onGetOrderSuccess: () => {
|
||||||
setNoticeData({ title: "Running components" });
|
setNoticeData({ title: "Running components" });
|
||||||
},
|
},
|
||||||
onBuildComplete: () => {
|
onBuildComplete: (allNodesValid) => {
|
||||||
const nodeId = startNodeId || stopNodeId;
|
const nodeId = startNodeId || stopNodeId;
|
||||||
if (nodeId) {
|
if (nodeId && allNodesValid) {
|
||||||
setSuccessData({
|
setSuccessData({
|
||||||
title: `${
|
title: `${
|
||||||
get().nodes.find((node) => node.id === nodeId)?.data.node
|
get().nodes.find((node) => node.id === nodeId)?.data.node
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue