From ee38b1e440765aa844b64941fde4c208d3912b51 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 7 Nov 2024 15:45:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=BA=93,=E9=9D=9E=E5=BF=85=E5=A1=AB=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B,=E4=B8=8D=E4=BC=A0=E5=80=BC=20=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E6=8A=A5=E9=94=99=20#1564?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../step_node/function_lib_node/impl/base_function_lib_node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py b/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py index 3ae9f7b898d..64e1c556eb9 100644 --- a/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py +++ b/apps/application/flow/step_node/function_lib_node/impl/base_function_lib_node.py @@ -62,6 +62,8 @@ def valid_reference_value(_type, value, name): def convert_value(name: str, value, _type, is_required, source, node): if not is_required and value is None: return None + if not is_required and source == 'reference' and (value is None or len(value) == 0): + return None if source == 'reference': value = node.workflow_manage.get_reference_field( value[0],