From f3f9fe3bf91f6b1c26b0c770b4b0c15eab274864 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 31 Oct 2017 20:55:06 +0000 Subject: [PATCH] fix breadcrumb regression --- src/app/components/files/files.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/files/files.component.ts b/src/app/components/files/files.component.ts index 71f282853..f4f8fba0f 100644 --- a/src/app/components/files/files.component.ts +++ b/src/app/components/files/files.component.ts @@ -146,7 +146,7 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy { onBreadcrumbNavigate(route: PathElementEntity) { // todo: review this approach once 5.2.3 is out - if (this.nodePath && this.nodePath.length > 0) { + if (this.nodePath && this.nodePath.length > 2) { if (this.nodePath[1].name === 'Sites' && this.nodePath[2].id === route.id) { return this.navigate(this.nodePath[3].id); }