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