Commit 905e812f authored by huming's avatar huming Committed by hetech

Tree: set isCurrent prop to False (#15870)

parent 64557d4a
......@@ -327,8 +327,8 @@ export default class TreeStore {
}
setCurrentNodeKey(key) {
if (key === null) {
this.currentNode.isCurrent = false;
if (key === null || key === undefined) {
this.currentNode && (this.currentNode.isCurrent = false);
this.currentNode = null;
return;
}
......
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