From 31d01c75c53b25cf6a532253fa6c70eca52a10a2 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Wed, 22 Jul 2020 08:23:53 +0200 Subject: [PATCH] And another potential issue --- projects/common/src/fm/effects/app-common.effects.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/fm/effects/app-common.effects.ts b/projects/common/src/fm/effects/app-common.effects.ts index e52d323..0d57399 100644 --- a/projects/common/src/fm/effects/app-common.effects.ts +++ b/projects/common/src/fm/effects/app-common.effects.ts @@ -112,7 +112,7 @@ export class AppCommonEffects { var editor = "property"; if(a.item.itemType) { var itemType = itemtypes[a.item.itemType]; - var editor = itemType.editor ? itemType.editor : editor; + var editor = itemType && itemType.editor ? itemType.editor : editor; } this.router$.navigate(['/editor',editor,'item', a.item.code]) return [];