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

pull/6969/head
Leopoldthecoder 2017-09-07 22:23:13 +09:00 committed by 杨奕
parent 3e7996edc8
commit 4609154475
1 changed files with 1 additions and 1 deletions

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