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