Fix:修复导入某些旧版xmind文件时报错的问题
This commit is contained in:
parent
c308cc7d44
commit
9a8cd1dd24
@ -198,7 +198,7 @@ const transformOldXmind = content => {
|
|||||||
childrenItem.elements.length > 0
|
childrenItem.elements.length > 0
|
||||||
) {
|
) {
|
||||||
const children = getElementsByType(childrenItem.elements, 'attached')
|
const children = getElementsByType(childrenItem.elements, 'attached')
|
||||||
children.forEach((item, index) => {
|
;(children || []).forEach((item, index) => {
|
||||||
const newChild = {}
|
const newChild = {}
|
||||||
newNode.children.push(newChild)
|
newNode.children.push(newChild)
|
||||||
if (childrenSummary[index]) {
|
if (childrenSummary[index]) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user