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

This commit is contained in:
Leopoldthecoder
2017-09-07 22:23:13 +09:00
committed by 杨奕
parent 3e7996edc8
commit 4609154475

View File

@@ -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;
}