diff --git a/ui/src/workflows/WorkflowEditor.vue b/ui/src/workflows/WorkflowEditor.vue index c1b9ccdea..85ca5b46f 100644 --- a/ui/src/workflows/WorkflowEditor.vue +++ b/ui/src/workflows/WorkflowEditor.vue @@ -261,6 +261,7 @@ async function save(next: WorkflowDefinitionCollection): Promise { } async function publish(): Promise { + if (publishBlocked.value || state.value.saving) return; // The id is the one the YAML declares; renaming is editing it there. const nextID = parsed.value.ok ? parsed.value.id : ""; if (!nextID) return; @@ -391,7 +392,9 @@ onBeforeUnmount(() => yamlObserver?.disconnect());