fix(editor): Support 'Save Workflow' key shortcut in new workflows (#16756)

This commit is contained in:
Charlie Kolb
2025-07-07 08:43:06 +02:00
committed by GitHub
parent 3b14830966
commit ffe8fbbf73

View File

@@ -849,7 +849,7 @@ function onPinNodes(ids: string[], source: PinDataSource) {
}
async function onSaveWorkflow() {
const workflowIsSaved = !uiStore.stateIsDirty;
const workflowIsSaved = !uiStore.stateIsDirty && !workflowsStore.isNewWorkflow;
const workflowIsArchived = workflowsStore.workflow.isArchived;
if (workflowIsSaved || workflowIsArchived) {