Skip to content

Commit

Permalink
Merge pull request #18836 from guerler/workflow_labels
Browse files Browse the repository at this point in the history
[24.1] Fix alert handling in workflow label handler
  • Loading branch information
dannon committed Sep 18, 2024
2 parents 07fa2e3 + efa5ada commit 8a35bfc
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ export function useUniqueLabelError(
workflowStateStore: ReturnType<typeof useWorkflowStepStore>,
label: string | null | undefined
) {
const error = ref("");
const error = ref<string | null>(null);
if (label && workflowStateStore.workflowOutputs[label]) {
error.value = `Duplicate label ${label}. Please fix this before saving the workflow.`;
} else {
error.value = "";
}
return error;
}

0 comments on commit 8a35bfc

Please sign in to comment.