Refactor buildVertices function to handle validation error
This commit is contained in:
parent
8d6cbeff44
commit
b84210c583
1 changed files with 2 additions and 4 deletions
|
|
@ -119,10 +119,8 @@ export async function buildVertices({
|
||||||
try {
|
try {
|
||||||
onValidateNodes(verticesOrderResponse.verticesToRun);
|
onValidateNodes(verticesOrderResponse.verticesToRun);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (onBuildComplete) {
|
useFlowStore.getState().setIsBuilding(false);
|
||||||
onBuildComplete(false);
|
|
||||||
useFlowStore.getState().setIsBuilding(false);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue