File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -68,19 +68,20 @@ export class ComfyWorkflowManager extends EventTarget {
68
68
favorites = new Set ( )
69
69
}
70
70
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
+ }
81
83
}
82
- return workflow
83
- } )
84
+ )
84
85
} catch ( error ) {
85
86
alert ( 'Error loading workflows: ' + ( error . message ?? error ) )
86
87
}
You can’t perform that action at this time.
0 commit comments