mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-24 15:34:26 +08:00
fix: page broke down while rendering node contained img and other elements (#14467)
This commit is contained in:
parent
bb4fecf3d1
commit
ddf9eb1f9a
@ -211,7 +211,9 @@ const Paragraph = (paragraph: any) => {
|
||||
return (
|
||||
<>
|
||||
<ImageGallery srcs={[children_node[0].properties.src]} />
|
||||
<p>{paragraph.children.slice(1)}</p>
|
||||
{
|
||||
Array.isArray(paragraph.children) ? <p>{paragraph.children.slice(1)}</p> : null
|
||||
}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user