Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyoung committed Aug 22, 2019
1 parent bf7ff56 commit 622e178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/table/src/store/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default {
const id = getRowIdentity(row, rowKey);
const data = id && treeData[id];
if (id && data && ('expanded' in data)) {
const oldExpanded = treeData[id].expanded;
const oldExpanded = data.expanded;
expanded = typeof expanded === 'undefined' ? !data.expanded : expanded;
treeData[id].expanded = expanded;
if (oldExpanded !== expanded) {
Expand Down

0 comments on commit 622e178

Please sign in to comment.