fix breadcrumb regression

This commit is contained in:
Denys Vuika
2017-10-31 20:55:06 +00:00
parent 0e8a6512f5
commit f3f9fe3bf9

View File

@@ -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);
}