Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyoung committed Jul 4, 2019
1 parent dea3f7e commit a8eb7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tree/src/model/tree-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export default class TreeStore {
}

setCurrentNodeKey(key) {
if (key === null) {
if (key === null || key === undefined) {
this.currentNode && (this.currentNode.isCurrent = false);
this.currentNode = null;
return;
Expand Down

0 comments on commit a8eb7e1

Please sign in to comment.