Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnadipa-dev committed Aug 9, 2023
1 parent eb66c5b commit 5c3558a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions elements/nuxeo-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -994,12 +994,10 @@ Polymer({
_toggleDrawer(e, selectedObj) {
const selectedItem = e.type === 'keyup' ? selectedObj : e;
const selectedItemDetail = selectedItem.detail ? selectedItem.detail : 0;
const selectedItemDetailSelected =
selectedItemDetail && selectedItemDetail.selected ? selectedItemDetail.selected : 0;
if (this._selected === selectedItemDetailSelected && this.drawerOpened) {
if (this._selected === selectedItemDetail && selectedItemDetail.selected && this.drawerOpened) {
this._closeDrawer();
} else {
this._selected = this.selectedTab = selectedItemDetailSelected || selectedItem;
this._selected = this.selectedTab = (selectedItemDetail && selectedItemDetail.selected) || selectedItem;
this._openDrawer();
}
},
Expand Down

0 comments on commit 5c3558a

Please sign in to comment.