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 [];