Fix null ref exception
This commit is contained in:
parent
ceeaa89ba3
commit
d977ddfb7b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user