Skip to content

Commit 1a5fb04

Browse files
committed
fix: Default value for form node reference parameter checkbox
1 parent 4786970 commit 1a5fb04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/application/flow/step_node/form_node/impl/base_form_node.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def get_default_option(option_list, _type, value_field):
2222
if option_list is not None and isinstance(option_list, list) and len(option_list) > 0:
2323
default_value_list = [o.get(value_field) for o in option_list if o.get('default')]
2424
if len(default_value_list) == 0:
25-
return [o.get(value_field) for o in option_list] if _type == 'MultiSelect' else option_list[0].get(
25+
return [option_list[0].get(
26+
value_field)] if _type == 'MultiSelect' else option_list[0].get(
2627
value_field)
2728
else:
2829
if _type == 'MultiSelect':

0 commit comments

Comments
 (0)