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

v3.2
zhangzhanwei 2025-10-29 15:32:48 +08:00 committed by zhanweizhang7
parent a4b7b8dbbb
commit 2cf1ad7ea4
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class BaseVariableAggregationNode(IVariableAggregation):
v = self.workflow_manage.get_reference_field(
variable.get('variable')[0],
variable.get('variable')[1:])
if v is not None:
if v is not None and not(isinstance(v, (str,list,dict)) and len(v) == 0) :
return v
return None