From 7e2984b6e28ee5f777da5a039e960bf74ecbfe91 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 8 Oct 2024 14:45:28 +0800 Subject: [PATCH] fix: array operator render --- .../if-else/components/condition-list/condition-operator.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx index 7b3a2b9d27..ecbe53f689 100644 --- a/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx +++ b/web/app/components/workflow/nodes/if-else/components/condition-list/condition-operator.tsx @@ -43,8 +43,7 @@ const ConditionOperator = ({ } }) }, [t, varType, file]) - const selectedOption = options.find(o => o.value === value) - + const selectedOption = options.find(o => Array.isArray(value) ? o.value === value[0] : o.value === value) return (