don't remove invalid dropdown values (#998)

for #963
This commit is contained in:
Alex "mcmonkey" Goodwin
2024-09-27 09:03:55 +09:00
committed by GitHub
parent 2531ec178e
commit 0cf21b190c

View File

@@ -2939,15 +2939,6 @@ export class ComfyApp {
def['input']['required'][widget.name] !== undefined
) {
widget.options.values = def['input']['required'][widget.name][0]
if (
widget.name != 'image' &&
!widget.options.values.includes(widget.value)
) {
widget.value = widget.options.values[0]
// @ts-expect-error
widget.callback(widget.value)
}
}
}
}