Skip to content

Commit

Permalink
Performance improvement Admin.PersonaBar pages treeview on Collapse/E…
Browse files Browse the repository at this point in the history
…xpand node (#3533)
  • Loading branch information
nadeem-akhtar-nu authored Feb 2, 2020
1 parent 6231117 commit 5d4b5dc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,14 @@ class PersonaBarPageTreeviewInteractor extends Component {
initialCollapse: false
});
let listPageItems = undefined;
let updateReduxStore = null;
this.props._traverse((item, listItem, updateStore) => {
(item.id === id) ? item.isOpen = !item.isOpen : null;
updateStore(listItem);
updateReduxStore = updateStore;
listPageItems = listItem;
});

updateReduxStore ? updateReduxStore(listPageItems) : null;
this._countTreeOpenDeepParent(listPageItems);
}

Expand Down

0 comments on commit 5d4b5dc

Please sign in to comment.