Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
udayvunnam committed Nov 3, 2019
1 parent b9aff64 commit 8d46872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/xng-breadcrumb/src/lib/breadcrumb.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export class BreadcrumbService {
if (pathOrAlias.startsWith('@')) {
this.updateStore({ ...breadcrumb, alias: pathOrAlias });
} else {
const breadcrumbExtraProps = this.buildRouteRegExp({ ...breadcrumb, path: pathOrAlias });
this.updateStore({ ...breadcrumb, breadcrumbExtraProps });
const breadcrumbExtraProps = this.buildRouteRegExp(pathOrAlias);
this.updateStore({ ...breadcrumb, ...breadcrumbExtraProps });
}
}

Expand Down

0 comments on commit 8d46872

Please sign in to comment.