Skip to content

Commit

Permalink
Update tree-store.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkisme authored and island205 committed Jul 2, 2019
1 parent d306194 commit dea3f7e
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 @@ -328,7 +328,7 @@ export default class TreeStore {

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

0 comments on commit dea3f7e

Please sign in to comment.