From 7c0634390975f9d106f3aeb8be5bbf53015d9473 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Fri, 21 Apr 2023 09:08:38 +0200 Subject: [PATCH] Aw4951 Non-fatal error if no viewer defined for itemtype --- package.json | 2 +- projects/common/src/fm/effects/app-common.effects.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c1fead0..aa0a803 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "farmmaps-lib-app", - "version": "3.1.0", + "version": "3.2.0", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/projects/common/src/fm/effects/app-common.effects.ts b/projects/common/src/fm/effects/app-common.effects.ts index 0b13174..20f8923 100644 --- a/projects/common/src/fm/effects/app-common.effects.ts +++ b/projects/common/src/fm/effects/app-common.effects.ts @@ -170,7 +170,7 @@ export class AppCommonEffects { this.router$.navigate(['/map', query ]) }else if(viewer == 'edit_in_editor') { this.router$.navigate(['/editor', editor, 'item', a.item.code]) - } else { + } else if(viewer) { this.router$.navigate(['/viewer', viewer, 'item', a.item.code]) } return [];