Skip to content

Commit 756e391

Browse files
AustinMrozDrJKL
authored andcommitted
Update comments
1 parent 61c5bfa commit 756e391

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/graph/widgets/dynamicWidgets.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)