Set onBuildComplete to run after all layers
This commit is contained in:
parent
08252710c4
commit
f9cb449c4f
1 changed files with 5 additions and 6 deletions
|
|
@ -204,12 +204,11 @@ export async function buildVertices({
|
|||
if (stop) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (onBuildComplete) {
|
||||
const allNodesValid = buildResults.every((result) => result);
|
||||
onBuildComplete(allNodesValid);
|
||||
useFlowStore.getState().setIsBuilding(false);
|
||||
}
|
||||
}
|
||||
if (onBuildComplete) {
|
||||
const allNodesValid = buildResults.every((result) => result);
|
||||
onBuildComplete(allNodesValid);
|
||||
useFlowStore.getState().setIsBuilding(false);
|
||||
}
|
||||
}
|
||||
async function buildVertex({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue