mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-30 21:09:53 +00:00
fix: update for reviews
This commit is contained in:
@@ -62,7 +62,6 @@ export function useWorkflowPersistence() {
|
||||
const workflowPath = activeWorkflow.path
|
||||
|
||||
if (workflowJson === lastSavedJsonByPath.value[workflowPath]) return
|
||||
lastSavedJsonByPath.value[workflowPath] = workflowJson
|
||||
|
||||
try {
|
||||
workflowDraftStore.saveDraft(activeWorkflow.path, {
|
||||
@@ -105,6 +104,8 @@ export function useWorkflowPersistence() {
|
||||
throw error
|
||||
}
|
||||
|
||||
lastSavedJsonByPath.value[workflowPath] = workflowJson
|
||||
|
||||
if (!activeWorkflow.isTemporary && !activeWorkflow.isModified) {
|
||||
workflowDraftStore.removeDraft(activeWorkflow.path)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user