diff --git a/src/app/core/components/navigation/navigation.service.ts b/src/app/core/components/navigation/navigation.service.ts index 6e6c051c..b85069b1 100644 --- a/src/app/core/components/navigation/navigation.service.ts +++ b/src/app/core/components/navigation/navigation.service.ts @@ -153,8 +153,15 @@ export class FuseNavigationService */ getFlatNavigation(navigationItems?) { + // If navigation items not provided, + // that means we are running the function + // for the first time... if ( !navigationItems ) { + // Reset the flat navigation + this.flatNavigation = []; + + // Get the entire navigation model navigationItems = this.navigationModel.model; }