Commit 46091544 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

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

parent 3e7996ed
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment