diff --git a/npm/ng-packs/packages/core/src/lib/services/routes.service.ts b/npm/ng-packs/packages/core/src/lib/services/routes.service.ts index 8faab8cedf..f1c2327684 100644 --- a/npm/ng-packs/packages/core/src/lib/services/routes.service.ts +++ b/npm/ng-packs/packages/core/src/lib/services/routes.service.ts @@ -83,10 +83,10 @@ export abstract class AbstractTreeService !this.hide(item)))); return flatItems; } @@ -99,13 +99,11 @@ export abstract class AbstractTreeService !this.hide(item)); - return this.publish(flatItems, visibleItems); + return this.publish(flatItems); } else { const flatItems = this.flat.concat(items); flatItems.sort(this.sort); - const visibleItems = flatItems.filter(item => !this.hide(item)); - return this.publish(flatItems, visibleItems); + return this.publish(flatItems); } } @@ -125,9 +123,7 @@ export abstract class AbstractTreeService !willRemoveItems.includes(item)); - const visibleItems = flatItems.filter(item => !this.hide(item)); - - return this.publish(flatItems, visibleItems); + return this.publish(flatItems); } return this.flat; @@ -156,9 +152,7 @@ export abstract class AbstractTreeService !this.hide(item)); - - return this.publish(flatItems, visibleItems); + return this.publish(flatItems); } refresh(): T[] { @@ -171,9 +165,7 @@ export abstract class AbstractTreeService !this.hide(item)); - - return this.publish(flatItems, visibleItems); + return this.publish(flatItems); } search(params: Partial, tree = this.tree): TreeNode | null {