From 22717f2b734c1a8f8418f405e0bbbc5337ad443b Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 9 Mar 2023 17:24:03 +0100 Subject: [PATCH] misc(generateLayerOverview): disable warning on boostrap run --- Models/ThemeConfig/Conversion/PrepareLayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/ThemeConfig/Conversion/PrepareLayer.ts b/Models/ThemeConfig/Conversion/PrepareLayer.ts index fe8c483c8..aaf84bc3a 100644 --- a/Models/ThemeConfig/Conversion/PrepareLayer.ts +++ b/Models/ThemeConfig/Conversion/PrepareLayer.ts @@ -266,7 +266,7 @@ class ExpandTagRendering extends Conversion< const lookup = this.lookup(tr) if (lookup === undefined) { const isTagRendering = ctx.indexOf("On(mapRendering") < 0 - if (isTagRendering) { + if (isTagRendering && this._state.sharedLayers.size > 0) { warnings.push( `${ctx}: A literal rendering was detected: ${tr} Did you perhaps forgot to add a layer name as 'layername.${tr}'? ` +