From d977ddfb7bf0d33f106a6e86c78d9e3f9aefd14b Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Tue, 5 Nov 2024 09:26:00 +0100 Subject: [PATCH] Fix null ref exception --- projects/common/src/fm/services/itemtype.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/fm/services/itemtype.service.ts b/projects/common/src/fm/services/itemtype.service.ts index c46930f..4eaab34 100644 --- a/projects/common/src/fm/services/itemtype.service.ts +++ b/projects/common/src/fm/services/itemtype.service.ts @@ -27,7 +27,7 @@ export class ItemTypeService { getExtraAttributes(itemType: string) { let extraAttributes = null; - if (this.itemTypes[itemType] && this.itemTypes[itemType].extraAttributes) extraAttributes = this.itemTypes[itemType].extraAttributes; + if (this.itemTypes[itemType] && this.itemTypes[itemType]?.extraAttributes) extraAttributes = this.itemTypes[itemType]?.extraAttributes; return extraAttributes; }