Update execution.py

patch to parse widget values not just input values. When widgets serialize as list on the JS side, they would never get converted back to list types (only if their input slot was connected to a value). This allows inputs/widget values to serialize to a proper list (i.e. convert if the value is dict with a {"value"} entry) just like inputs.
This commit is contained in:
Alexander G. Morano 2025-05-13 22:49:14 -04:00 committed by GitHub
parent 240a7f89c7
commit 2a127e361e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,7 +115,6 @@ def get_input_data(inputs, class_def, unique_id, outputs=None, dynprompt=None, e
# patch to parse widget values not just input values
if isinstance(input_data, dict) and "__value__" in input_data:
input_data = input_data["__value__"]
def mark_missing():
missing_keys[x] = True
input_data_all[x] = (None,)