Fix:修复导入某些旧版xmind文件时报错的问题

This commit is contained in:
街角小林 2024-02-23 15:06:07 +08:00
parent c308cc7d44
commit 9a8cd1dd24

View File

@ -198,7 +198,7 @@ const transformOldXmind = content => {
childrenItem.elements.length > 0
) {
const children = getElementsByType(childrenItem.elements, 'attached')
children.forEach((item, index) => {
;(children || []).forEach((item, index) => {
const newChild = {}
newNode.children.push(newChild)
if (childrenSummary[index]) {