File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function COMFY_DYNAMICCOMBO_V3(
3939 ( widget ) => widget . name === name
4040 )
4141 if ( widgetIndex === - 1 ) continue
42- node . widgets [ widgetIndex ] . callback ?. ( undefined )
42+ node . widgets [ widgetIndex ] . value = undefined
4343 node . widgets . splice ( widgetIndex , 1 )
4444 }
4545 currentDynamicNames = [ ]
@@ -67,19 +67,11 @@ function COMFY_DYNAMICCOMBO_V3(
6767 isOptional
6868 } )
6969 )
70- currentDynamicNames . push ( ` ${ widget . name } . ${ name } ` )
70+ currentDynamicNames . push ( name )
7171 }
7272
7373 const addedWidgets = node . widgets . splice ( startingLength )
74- for ( const addedWidget of addedWidgets ) {
75- addedWidget . name = `${ widget . name } .${ addedWidget . name } `
76- }
7774 node . widgets . splice ( insertionPoint , 0 , ...addedWidgets )
78- for ( const input of node . inputs . slice ( startingInputLength ) ) {
79- input . name = `${ widget . name } .${ input . name } `
80- if ( input . widget )
81- input . widget . name = `${ widget . name } .${ input . widget . name } `
82- }
8375 if ( inputInsertionPoint === 0 ) {
8476 if (
8577 addedWidgets . length === 0 &&
You can’t perform that action at this time.
0 commit comments