Skip to content

Automate browser based workflows with AI

Delete unused code (#912)

Kerem Yilmazaedb7d2cc837
diff --git a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
index 63430970e..138259d4b 100644
--- a/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
+++ b/skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
@@ -601,19 +601,6 @@ function FlowRenderer({
});
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();
}}
/>