Skip to content

Commit

Permalink
fix: spelling correction
Browse files Browse the repository at this point in the history
  • Loading branch information
udayvunnam committed Mar 15, 2020
1 parent c6fd339 commit 8cf78d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions projects/xng-breadcrumb/src/lib/breadcrumb.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ export class BreadcrumbService {
return this.prepareBreadcrumbList(activatedRoute.firstChild, routeLinkPrefix);
}
// remove breadcrumb items that needs to be hidden or don't have a label
const breacrumbsToShow = this.currentBreadcrumbs.filter(item => !item.skip);
const breadcrumbsToShow = this.currentBreadcrumbs.filter(item => !item.skip);

this.breadcrumbs.next(breacrumbsToShow);
this.breadcrumbs.next(breadcrumbsToShow);
}

private prepareBreadcrumbItem(activatedRoute: ActivatedRoute, routeLinkPrefix: string): Breadcrumb {
Expand Down Expand Up @@ -201,7 +201,7 @@ export class BreadcrumbService {
*
* Ex: route declaration - path: '/mentor/:id'
* breadcrumbService.set('/mentor/:id', 'Uday');
* '/mentor/2' OR 'mentor/adasd' we should use 'Uday' as label
* '/mentor/2' OR 'mentor/ada' we should use 'Uday' as label
*
* regex string is built, if route has path params(contains with ':')
*/
Expand Down Expand Up @@ -231,8 +231,8 @@ export class BreadcrumbService {
// if breadcrumb is present in current breadcrumbs update it and emit new stream
if (breadcrumbItemIndex > -1) {
this.currentBreadcrumbs[breadcrumbItemIndex] = { ...this.currentBreadcrumbs[breadcrumbItemIndex], ...breadcrumb };
const breacrumbsToShow = this.currentBreadcrumbs.filter(item => !item.skip);
this.breadcrumbs.next([...breacrumbsToShow]);
const breadcrumbsToShow = this.currentBreadcrumbs.filter(item => !item.skip);
this.breadcrumbs.next([...breadcrumbsToShow]);
}

// If the store already has this route definition update it, else add
Expand Down

0 comments on commit 8cf78d9

Please sign in to comment.