Skip to content

Commit 2060664

Browse files
committed
fix: In the variable aggregation strategy that returns the first non-null value of each group, empty strings, empty lists, and empty objects are not treated as null values
1 parent a4b7b8d commit 2060664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/step_node/variable_aggregation_node/impl/base_variable_aggregation_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def get_first_non_null(self, variable_list):
2525
v = self.workflow_manage.get_reference_field(
2626
variable.get('variable')[0],
2727
variable.get('variable')[1:])
28-
if v is not None:
28+
if v is not None and not(isinstance(v, (str,list,dict)) and len(v) == 0) :
2929
return v
3030
return None
3131

0 commit comments

Comments
 (0)