Skip to content

Commit 668bc92

Browse files
committed
nit
1 parent 68afa55 commit 668bc92

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/scripts/workflows.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,20 @@ export class ComfyWorkflowManager extends EventTarget {
6868
favorites = new Set()
6969
}
7070

71-
;(await api.listUserData('workflows', true, true)).forEach((w) => {
72-
let workflow = this.workflowLookup[w[0]]
73-
if (!workflow) {
74-
workflow = new ComfyWorkflow(
75-
this,
76-
w[0],
77-
w.slice(1),
78-
favorites.has(w[0])
79-
)
80-
this.workflowLookup[workflow.path] = workflow
71+
;(await api.listUserData('workflows', true, true)).forEach(
72+
(w: string[]) => {
73+
let workflow = this.workflowLookup[w[0]]
74+
if (!workflow) {
75+
workflow = new ComfyWorkflow(
76+
this,
77+
w[0],
78+
w.slice(1),
79+
favorites.has(w[0])
80+
)
81+
this.workflowLookup[workflow.path] = workflow
82+
}
8183
}
82-
return workflow
83-
})
84+
)
8485
} catch (error) {
8586
alert('Error loading workflows: ' + (error.message ?? error))
8687
}

0 commit comments

Comments
 (0)