From 2920fd82f170fe6b0f06311a6c56484bc2905b62 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Tue, 18 Feb 2020 17:00:19 +0100 Subject: [PATCH] Fix viewer --- .../fm-map/components/selected-item/selected-item.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts b/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts index 32c37fb..2fee740 100644 --- a/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts +++ b/projects/common-map/src/fm-map/components/selected-item/selected-item.component.ts @@ -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]); }