Do not trigger autosave on workflows that are not persisted (#3400)

Co-authored-by: Benjamin Lu <templu1107@proton.me>
This commit is contained in:
Benjamin Lu
2025-04-11 12:53:49 -04:00
committed by GitHub
parent a03841cb1a
commit 25e6386b2a
3 changed files with 55 additions and 22 deletions

View File

@@ -39,7 +39,7 @@ export function useWorkflowAutoSave() {
const delay = autoSaveDelay.value
autoSaveTimeout = setTimeout(async () => {
const activeWorkflow = workflowStore.activeWorkflow
if (activeWorkflow?.isModified) {
if (activeWorkflow?.isModified && activeWorkflow.isPersisted) {
try {
isSaving = true
await workflowService.saveWorkflow(activeWorkflow)