more checking

This commit is contained in:
burnettk 2022-10-06 19:10:11 -04:00
parent d1c1e6069c
commit ac16fc8be1

View File

@ -1390,9 +1390,12 @@ def _update_form_schema_with_task_data_as_needed(
)
)
select_options_from_task_data = task_data.get(
task_data_var
)
select_options_from_task_data = task_data.get(task_data_var)
if isinstance(select_options_from_task_data, list):
if all(
"value" in d and "label" in d
for d in select_options_from_task_data
):
def map_function(
task_data_select_option: TaskDataSelectOption,