Fix viewer
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good

This commit is contained in:
Willem Dantuma 2020-02-18 17:00:19 +01:00
parent ad11de53af
commit 2920fd82f1

View File

@ -15,7 +15,7 @@ export abstract class AbstractSelectedItemComponent {
handleOnView(item: IItem) { handleOnView(item: IItem) {
if (this.itemTypeService.hasViewer(item)) { if (this.itemTypeService.hasViewer(item)) {
let viewer = this.itemTypeService.itemTypes[item.itemType]; let viewer = this.itemTypeService.itemTypes[item.itemType].viewer;
let url = `/viewer/${viewer}/item/${item.code}`; let url = `/viewer/${viewer}/item/${item.code}`;
this.router.navigate([url]); this.router.navigate([url]);
} }