diff --git a/client/src/components/Workflow/Editor/composables/useUniqueLabelError.ts b/client/src/components/Workflow/Editor/composables/useUniqueLabelError.ts index 331c1a70b7dc..84276f2998ae 100644 --- a/client/src/components/Workflow/Editor/composables/useUniqueLabelError.ts +++ b/client/src/components/Workflow/Editor/composables/useUniqueLabelError.ts @@ -6,11 +6,9 @@ export function useUniqueLabelError( workflowStateStore: ReturnType, label: string | null | undefined ) { - const error = ref(""); + const error = ref(null); if (label && workflowStateStore.workflowOutputs[label]) { error.value = `Duplicate label ${label}. Please fix this before saving the workflow.`; - } else { - error.value = ""; } return error; }