From 11e55088c96223cde02327cd15d6802fc8bdb272 Mon Sep 17 00:00:00 2001 From: lyzno1 <92089059+lyzno1@users.noreply.github.com> Date: Thu, 11 Sep 2025 17:54:31 +0800 Subject: [PATCH] fix: restore id prop passing to node children in BaseNode (#25520) --- web/app/components/workflow/nodes/_base/node.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/node.tsx b/web/app/components/workflow/nodes/_base/node.tsx index ad8f14b7be..bb681190ef 100644 --- a/web/app/components/workflow/nodes/_base/node.tsx +++ b/web/app/components/workflow/nodes/_base/node.tsx @@ -304,13 +304,13 @@ const BaseNode: FC = ({ { data.type !== BlockEnum.Iteration && data.type !== BlockEnum.Loop && ( - cloneElement(children, { data } as any) + cloneElement(children, { id, data } as any) ) } { (data.type === BlockEnum.Iteration || data.type === BlockEnum.Loop) && (
- {cloneElement(children, { data } as any)} + {cloneElement(children, { id, data } as any)}
) }