Delete unused code (#912)
This commit is contained in:
@@ -601,19 +601,6 @@ function FlowRenderer({
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// TODO might need to abstract this out or find different way to handle errors
|
|
||||||
const loopNodes: Array<LoopNode> = nodes.filter(isLoopNode);
|
|
||||||
const emptyLoopNodes = loopNodes.filter(
|
|
||||||
(node: LoopNode) => node.data.loopValue === "",
|
|
||||||
);
|
|
||||||
if (emptyLoopNodes.length > 0) {
|
|
||||||
toast({
|
|
||||||
title: "Can not save workflow because of errors",
|
|
||||||
description: `${emptyLoopNodes.map((node) => node.data.label).join(", ")}: Loop value cannot be empty`,
|
|
||||||
variant: "destructive",
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
await handleSave();
|
await handleSave();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user