From 0ca92ed6ab9bb85dd2d71aba1d494cff92d80822 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 27 Sep 2022 18:53:53 +0200 Subject: [PATCH] Make models deal with 'null'-titleicons --- Models/ThemeConfig/LayerConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/ThemeConfig/LayerConfig.ts b/Models/ThemeConfig/LayerConfig.ts index 389a7854f0..b725ea4c21 100644 --- a/Models/ThemeConfig/LayerConfig.ts +++ b/Models/ThemeConfig/LayerConfig.ts @@ -371,7 +371,7 @@ export default class LayerConfig extends WithContextLoader { throw "Error in " + context + ": use 'filter' instead of 'filters'" } - this.titleIcons = this.ParseTagRenderings(json.titleIcons, { + this.titleIcons = this.ParseTagRenderings(json.titleIcons ?? [], { readOnlyMode: true, })