Fix viewer
FarmMaps.Develop/FarmMapsLib/develop This commit looks good Details

pull/1/head
Willem Dantuma 2020-02-18 17:00:19 +01:00
parent ad11de53af
commit 2920fd82f1
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export abstract class AbstractSelectedItemComponent {
handleOnView(item: IItem) {
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}`;
this.router.navigate([url]);
}