fixed bug at breadcrumb

This commit is contained in:
Eraldo Hasanaj
2019-02-13 10:59:30 +01:00
parent 8f3d703d95
commit 27d0c12ac9
2 changed files with 3 additions and 2 deletions

View File

@@ -109,7 +109,8 @@ export class ProductDetailsComponent implements OnInit {
// specs object mapping
if (item.sp) {
author = item.sp.find(s => s.key === this.AUTOR).value;
author = item.sp.find(s => s.key === this.AUTOR) ?
item.sp.find(s => s.key === this.AUTOR).value : 'missing';
title = item.sp.find(s => s.key === this.TITLE).value;
}

View File

@@ -93,7 +93,7 @@ export class AddBreadcrumb {
}
export class UpdateBreadcrump {
static readonly type = ADD_BREADCRUMB;
static readonly type = UPDATE_BREADCRUMB;
constructor(public payload: Breadcrumb) {}
}