Fixed: Shortcut items duplicates on search in some cases

This commit is contained in:
Sercan Yemen 2017-12-08 10:31:39 +03:00
parent 5c2e717a40
commit 7c2494a82c

View File

@ -153,8 +153,15 @@ export class FuseNavigationService
*/ */
getFlatNavigation(navigationItems?) getFlatNavigation(navigationItems?)
{ {
// If navigation items not provided,
// that means we are running the function
// for the first time...
if ( !navigationItems ) if ( !navigationItems )
{ {
// Reset the flat navigation
this.flatNavigation = [];
// Get the entire navigation model
navigationItems = this.navigationModel.model; navigationItems = this.navigationModel.model;
} }