mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-17 01:52:59 +08:00
Make validate_inputs validate combo input correctly
This commit is contained in:
parent
308ae94c66
commit
b1b1429b43
@ -914,7 +914,10 @@ async def validate_inputs(prompt_id, prompt, item, validated):
|
|||||||
errors.append(error)
|
errors.append(error)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if isinstance(input_type, list):
|
if isinstance(input_type, list) or input_type == io.Combo.io_type:
|
||||||
|
if input_type == io.Combo.io_type:
|
||||||
|
combo_options = extra_info.get("options", [])
|
||||||
|
else:
|
||||||
combo_options = input_type
|
combo_options = input_type
|
||||||
if val not in combo_options:
|
if val not in combo_options:
|
||||||
input_config = info
|
input_config = info
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user