diff --git a/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx b/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx index 787191cc..806afa36 100644 --- a/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx +++ b/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx @@ -526,7 +526,7 @@ function reducer(state: State, action: Action): State { const existingToolIndex = draft.workflow.tools.findIndex( tool => tool.name === newTool.name ); - + if (existingToolIndex !== -1) { // Replace existing tool draft.workflow.tools[existingToolIndex] = newTool; @@ -803,9 +803,7 @@ export function WorkflowEditor({ View versions - -
- +