Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyhb committed Sep 18, 2024
1 parent 6bc34e9 commit 361574c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/workflow/src/ui/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const EditorUI = ({ direction }: EditorProps) => {
const { nodes, edges } = parseWorkflow({ workflow, trigger });
setNodes(nodes);
setEdges(edges);
}, [JSON.stringify(workflow.edges)]);
}, [JSON.stringify(workflow?.edges || [])]);

const nodeTypes = useMemo(() => ({
trigger: (node: any) => { // TODO: Define args type.
Expand Down
2 changes: 0 additions & 2 deletions packages/workflow/src/ui/sidebar/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export const SidebarHeader = () => {
deleteAction((action as WorkflowAction)?.id);
setSelectedNode(undefined);
}}
style={{
}}
>
Delete action
</button>
Expand Down

0 comments on commit 361574c

Please sign in to comment.