From 3a857c83e67570a4db2cde83e62e3a2033844f44 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 14 Mar 2024 18:46:30 +0800 Subject: [PATCH] chore: only show has value node in end --- web/app/components/workflow/nodes/end/node.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/end/node.tsx b/web/app/components/workflow/nodes/end/node.tsx index 7a5311fee1..5d2bbe20c8 100644 --- a/web/app/components/workflow/nodes/end/node.tsx +++ b/web/app/components/workflow/nodes/end/node.tsx @@ -47,8 +47,8 @@ const Node: FC> = ({ } const { outputs } = data return ( -
- {(outputs as Variable[]).map(({ value_selector }, index) => { +
+ {(outputs as Variable[]).filter(({ value_selector }) => value_selector.length > 0).map(({ value_selector }, index) => { const node = getNode(value_selector[0]) const varName = value_selector[value_selector.length - 1] return (