Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor: clarify workflow reuse logic for loaded files not in direct…
…ory and use strict equality
  • Loading branch information
Myestery committed Dec 3, 2025
commit 43b5f81f902369f1deb67bae854fa68e6691fcfb
5 changes: 3 additions & 2 deletions src/platform/workflow/management/stores/workflowStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,11 @@ export const useWorkflowStore = defineStore('workflow', () => {
ComfyWorkflow.basePath + (path ?? 'Unsaved Workflow.json')
)

// Try to reuse existing persisted workflow with the same filename
// Try to reuse an existing loaded workflow with the same filename
// that is not stored in the workflows directory
if (path && workflowData) {
const existingWorkflow = workflows.value.find(
(w) => w.fullFilename == path
(w) => w.fullFilename === path
)
if (
existingWorkflow?.changeTracker &&
Expand Down