From 01506d5862825d8fc68425fadc097f252041e720 Mon Sep 17 00:00:00 2001 From: RXRD Date: Fri, 21 Jul 2023 08:57:06 +0700 Subject: [PATCH] Update string.ts --- src/helpers/string.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;