Fix null ref exception

This commit is contained in:
Peter Bastiani 2024-11-05 09:26:00 +01:00
parent ceeaa89ba3
commit d977ddfb7b

View File

@ -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;
}