diff --git a/src/helpers/string.ts b/src/helpers/string.ts index f2057d4c4..dba12618a 100644 --- a/src/helpers/string.ts +++ b/src/helpers/string.ts @@ -96,7 +96,7 @@ export const htmlToJson = (html: any) => { img.push(imgs); } } else { - if (Array.isArray(item.props.children)) { + if (Array.isArray(item.props?.children)) { item.props.children.map(child => { if (child.type === 'img') { const imgs = child.props.src;