Make models deal with 'null'-titleicons

This commit is contained in:
Pieter Vander Vennet 2022-09-27 18:53:53 +02:00
parent 4521889909
commit 0ca92ed6ab

View file

@ -371,7 +371,7 @@ export default class LayerConfig extends WithContextLoader {
throw "Error in " + context + ": use 'filter' instead of 'filters'" throw "Error in " + context + ": use 'filter' instead of 'filters'"
} }
this.titleIcons = this.ParseTagRenderings(<TagRenderingConfigJson[]>json.titleIcons, { this.titleIcons = this.ParseTagRenderings(<TagRenderingConfigJson[]>json.titleIcons ?? [], {
readOnlyMode: true, readOnlyMode: true,
}) })