Skip to content

Commit

Permalink
don't remove invalid dropdown values (#998)
Browse files Browse the repository at this point in the history
for #963
  • Loading branch information
mcmonkey4eva committed Sep 27, 2024
1 parent 2531ec1 commit 0cf21b1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/scripts/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}
Expand Down

0 comments on commit 0cf21b1

Please sign in to comment.