diff --git a/client/src/components/Form/FormElement.vue b/client/src/components/Form/FormElement.vue index 131aba03f27d..72af07dd7f8d 100644 --- a/client/src/components/Form/FormElement.vue +++ b/client/src/components/Form/FormElement.vue @@ -177,7 +177,7 @@ const isOptional = computed(() => !isRequired.value && attrs.value["optional"] ! const formAlert = ref(); const alerts = computed(() => { return [formAlert.value, props.error, props.warning] - .filter((v) => v !== undefined && v !== null && v !== "") + .filter((v) => v !== undefined && v !== null) .map((v) => linkify(sanitize(v!, { USE_PROFILES: { html: true } }))); }); diff --git a/client/src/components/Workflow/Editor/composables/useUniqueLabelError.ts b/client/src/components/Workflow/Editor/composables/useUniqueLabelError.ts index ea5327075d58..d0b84db830ae 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; }