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 {
|
||||
onValidateNodes(verticesOrderResponse.verticesToRun);
|
||||
} catch (e) {
|
||||
if (onBuildComplete) {
|
||||
onBuildComplete(false);
|
||||
useFlowStore.getState().setIsBuilding(false);
|
||||
}
|
||||
useFlowStore.getState().setIsBuilding(false);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue