Fix buildUtils.ts to handle validation errors properly

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-28 17:32:22 -03:00
commit 8d6cbeff44

View file

@ -119,6 +119,10 @@ export async function buildVertices({
try {
onValidateNodes(verticesOrderResponse.verticesToRun);
} catch (e) {
if (onBuildComplete) {
onBuildComplete(false);
useFlowStore.getState().setIsBuilding(false);
}
return;
}
}