feat: Add error message for invalid nodes in BuildTrigger
This commit is contained in:
parent
2811bc57c4
commit
a62d50a011
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,12 @@ export default function BuildTrigger({
|
|||
const allNodesValid = await streamNodeData(flow);
|
||||
await enforceMinimumLoadingTime(startTime, minimumLoadingTime);
|
||||
setIsBuilt(allNodesValid);
|
||||
if(!allNodesValid) {
|
||||
setErrorData({
|
||||
title: "Oops! Looks like you missed something",
|
||||
list: ["Check nodes and retry. Hover over 🔴 node for status."],
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error:", error);
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue