Skip to content

Commit

Permalink
Delete unused code (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykeremy authored Oct 4, 2024
1 parent 8b79dfa commit aedb7d2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions skyvern-frontend/src/routes/workflows/editor/FlowRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}}
/>
Expand Down

0 comments on commit aedb7d2

Please sign in to comment.