diff --git a/projects/common/src/fm/effects/app-common.effects.ts b/projects/common/src/fm/effects/app-common.effects.ts index 7a4406b..e52d323 100644 --- a/projects/common/src/fm/effects/app-common.effects.ts +++ b/projects/common/src/fm/effects/app-common.effects.ts @@ -109,8 +109,11 @@ export class AppCommonEffects { withLatestFrom(this.store$.select(appCommonReducers.selectGetItemTypes)), switchMap(([action, itemtypes]) => { var a = action as appCommonActions.EditItem; - var itemType = itemtypes[a.item.itemType]; - var editor = itemType.editor ? itemType.editor : "property"; + var editor = "property"; + if(a.item.itemType) { + var itemType = itemtypes[a.item.itemType]; + var editor = itemType.editor ? itemType.editor : editor; + } this.router$.navigate(['/editor',editor,'item', a.item.code]) return []; }