Skip to content

Commit

Permalink
fix: extension support (#1880)
Browse files Browse the repository at this point in the history
Update string.ts
  • Loading branch information
RiXelanya authored Jul 21, 2023
1 parent 405143f commit 7c2bccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7c2bccc

Please sign in to comment.