Skip to content

Commit

Permalink
fix: comment clear storage (sticky state ) for secondary menu if home…
Browse files Browse the repository at this point in the history
… (dashboard was clicked)
  • Loading branch information
AndyKIron committed Jun 5, 2024
1 parent 0dc61a4 commit a74dd60
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ export class NavigationMenuComponent implements OnInit {
this.selectedPrimaryMenuItem = this.preSelectedPrimaryMenuItem;
this.primaryMenu.setSelectedPrimaryMenuItem(this.selectedPrimaryMenuItem);
this.menuItemClicked.emit({name: selectedNetwork.menuTitle, route: selectedNetwork.route});
/*
if (selectedNetwork.type === NavigationBarItemType.Home) {
this.storageService.remove(StorageType.SessionStorage, MENU_CACHE_KEY);
}
*/
} else {
const isNavigateByClick = this.primaryMenuItemMode === 'clickToDefaultSecondaryItem';
const itemToNavigate = isNavigateByClick ? this.findDefaultMenuItem(selectedNetwork.menuItems) : undefined;
Expand Down

0 comments on commit a74dd60

Please sign in to comment.