Skip to content

Commit b1b1429

Browse files
committed
Make validate_inputs validate combo input correctly
1 parent 308ae94 commit b1b1429

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

execution.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,11 @@ async def validate_inputs(prompt_id, prompt, item, validated):
914914
errors.append(error)
915915
continue
916916

917-
if isinstance(input_type, list):
918-
combo_options = input_type
917+
if isinstance(input_type, list) or input_type == io.Combo.io_type:
918+
if input_type == io.Combo.io_type:
919+
combo_options = extra_info.get("options", [])
920+
else:
921+
combo_options = input_type
919922
if val not in combo_options:
920923
input_config = info
921924
list_info = ""

0 commit comments

Comments
 (0)