From ef88a186a01fee896f2245e399e651837035c6a3 Mon Sep 17 00:00:00 2001 From: Uday Vunnam <20707504+udayvunnam@users.noreply.github.com> Date: Mon, 1 Jan 2024 17:32:42 +0530 Subject: [PATCH] Update libs/xng-breadcrumb/src/lib/breadcrumb.service.ts --- libs/xng-breadcrumb/src/lib/breadcrumb.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/xng-breadcrumb/src/lib/breadcrumb.service.ts b/libs/xng-breadcrumb/src/lib/breadcrumb.service.ts index cf78217..e390110 100644 --- a/libs/xng-breadcrumb/src/lib/breadcrumb.service.ts +++ b/libs/xng-breadcrumb/src/lib/breadcrumb.service.ts @@ -145,7 +145,7 @@ export class BreadcrumbService { activatedRouteSnapshot: ActivatedRouteSnapshot, routeLinkPrefix: string ): Breadcrumb[] | void { - if (`${activatedRouteSnapshot.routeConfig?.path ?? ''}`.length > 0) { + if (activatedRouteSnapshot.routeConfig?.path) { const breadcrumbItem = this.prepareBreadcrumbItem( activatedRouteSnapshot, routeLinkPrefix