Browse Source

Update node.js

hetech 7 năm trước cách đây
mục cha
commit
34471f76e9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/tree/src/model/node.js

+ 1 - 1
packages/tree/src/model/node.js

@@ -111,7 +111,7 @@ export default class Node {
     } else if (this.level > 0 && store.lazy && store.defaultExpandAll) {
       this.expand();
     }
-    if (this.data && !Array.isArray(this.data)) {
+    if (!Array.isArray(this.data)) {
       markNodeData(this, this.data);
     }
     if (!this.data) return;