Skip to content

Commit 9a0e81a

Browse files
committed
- updated according to PR
1 parent a2084e0 commit 9a0e81a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

projects/netgrif-components-core/src/lib/navigation/navigation-double-drawer/service/double-drawer-navigation.service.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,12 @@ export class DoubleDrawerNavigationService implements OnDestroy {
295295
public openAvailableView() {
296296
let allItems: Array<NavigationItem> = this.rightItems.concat(this.moreItems);
297297

298-
let alreadyClickedItem: NavigationItem = allItems.find(item => item.id === this._currentNavigationItem.id);
299-
if (!!alreadyClickedItem) {
300-
// when the folder has not changed and a menu item is clicked.
301-
return;
298+
if (this._currentNavigationItem) {
299+
let alreadyClickedItem: NavigationItem = allItems.find(item => item.id === this._currentNavigationItem.id);
300+
if (!!alreadyClickedItem) {
301+
// when the folder has not changed and a menu item is clicked.
302+
return;
303+
}
302304
}
303305

304306
let autoOpenItems: Array<NavigationItem> = allItems.filter(item => DoubleDrawerUtils.hasItemAutoOpenView(item));

0 commit comments

Comments
 (0)