Explorar o código

Tree: fix current-node-key === 0 bug

Leopoldthecoder %!s(int64=8) %!d(string=hai) anos
pai
achega
4609154475
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

@@ -132,7 +132,7 @@ export default class Node {
       this.expand(null, store.autoExpandParent);
     }
 
-    if (key && store.currentNodeKey && this.key === store.currentNodeKey) {
+    if (key && store.currentNodeKey !== undefined && this.key === store.currentNodeKey) {
       store.currentNode = this;
     }