Explorar o código

Update node.js

hetech %!s(int64=7) %!d(string=hai) anos
pai
achega
34471f76e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;