Commit eaba7846 authored by wangjingf's avatar wangjingf Committed by GitHub

Update node.js

this.data可能为undefined,需要判断一下
parent 87d591c3
......@@ -111,7 +111,7 @@ export default class Node {
} else if (this.level > 0 && store.lazy && store.defaultExpandAll) {
this.expand();
}
if (!Array.isArray(this.data)) {
if (this.data && !Array.isArray(this.data)) {
markNodeData(this, this.data);
}
if (!this.data) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment