Skip to content

Commit d2a0fb6

Browse files
author
Chenlei Hu
authored
Add unwrap widget value support (#7197)
* Add unwrap widget value support * nit
1 parent 01015bf commit d2a0fb6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

execution.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,13 @@ def validate_inputs(prompt, item, validated):
634634
continue
635635
else:
636636
try:
637+
# Unwraps values wrapped in __value__ key. This is used to pass
638+
# list widget value to execution, as by default list value is
639+
# reserved to represent the connection between nodes.
640+
if isinstance(val, dict) and "__value__" in val:
641+
val = val["__value__"]
642+
inputs[x] = val
643+
637644
if type_input == "INT":
638645
val = int(val)
639646
inputs[x] = val

0 commit comments

Comments
 (0)