mirror of https://github.com/langgenius/dify.git
fix: restore id prop passing to node children in BaseNode (#25520)
This commit is contained in:
parent
57c0bc9fb6
commit
11e55088c9
|
|
@ -304,13 +304,13 @@ const BaseNode: FC<BaseNodeProps> = ({
|
|||
</div>
|
||||
{
|
||||
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) && (
|
||||
<div className='grow pb-1 pl-1 pr-1'>
|
||||
{cloneElement(children, { data } as any)}
|
||||
{cloneElement(children, { id, data } as any)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue