From 7c2494a82ce26b5a1ea0a8507c338f10871a77ec Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Fri, 8 Dec 2017 10:31:39 +0300 Subject: [PATCH] Fixed: Shortcut items duplicates on search in some cases --- src/app/core/components/navigation/navigation.service.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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; }