Skip to content

Commit

Permalink
After code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti committed Feb 20, 2020
1 parent e40037d commit d35191c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/sub-items/sub.items.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ export default class SubItemsModule extends Component {
* @memberof SubItemsModule
*/
switchView(activeView) {
this.setState(() => ({ activeView }), eZ.helpers.tooltips.hideAll());
this.setState(
() => ({ activeView }),
() => eZ.helpers.tooltips.hideAll()
);
}

toggleItemSelection(item, isSelected) {
Expand Down

0 comments on commit d35191c

Please sign in to comment.