Skip to content

Commit

Permalink
fix: empty paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cskiwi committed Nov 20, 2023
1 parent 45940b4 commit c58c476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/xng-breadcrumb/src/lib/breadcrumb.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class BreadcrumbService {
activatedRouteSnapshot: ActivatedRouteSnapshot,
routeLinkPrefix: string
): Breadcrumb[] | void {
if (activatedRouteSnapshot.routeConfig?.path != null) {
if (`${activatedRouteSnapshot.routeConfig?.path ?? ''}`.length > 0) {
const breadcrumbItem = this.prepareBreadcrumbItem(
activatedRouteSnapshot,
routeLinkPrefix
Expand Down

0 comments on commit c58c476

Please sign in to comment.