File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ function COMFY_DYNAMICCOMBO_V3(
3333 if ( ! node . widgets ) throw new Error ( 'Not Reachable' )
3434 const newSpec = value ? options [ value ] : undefined
3535 //TODO: Calculate intersection for widgets that persist across options
36+ //This would potentially allow links to be retained
3637 for ( const name of currentDynamicNames ) {
3738 const inputIndex = node . inputs . findIndex ( ( input ) => input . name === name )
3839 if ( inputIndex !== - 1 ) node . removeInput ( inputIndex )
@@ -53,8 +54,6 @@ function COMFY_DYNAMICCOMBO_V3(
5354 const startingInputLength = node . inputs . length
5455 if ( insertionPoint === 0 )
5556 throw new Error ( "Dynamic widget doesn't exist on node" )
56- //FIXME: inputs MUST be well ordered
57- //FIXME check for duplicates
5857 const inputTypes : [ Record < string , InputSpec > | undefined , boolean ] [ ] = [
5958 [ newSpec . required , false ] ,
6059 [ newSpec . optional , true ]
You can’t perform that action at this time.
0 commit comments