From 2c735f3be8ad2627a0bf031e2b00f877abfe8644 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 23 Nov 2023 16:13:26 +0100 Subject: [PATCH] Fix tests --- src/Logic/Actors/PreferredRasterLayerSelector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logic/Actors/PreferredRasterLayerSelector.ts b/src/Logic/Actors/PreferredRasterLayerSelector.ts index a1c8e3138..ed7c96fc4 100644 --- a/src/Logic/Actors/PreferredRasterLayerSelector.ts +++ b/src/Logic/Actors/PreferredRasterLayerSelector.ts @@ -64,7 +64,7 @@ export class PreferredRasterLayerSelector { const foundLayer = isCategory ? available.find((l) => l.properties.category === targetLayerId) : available.find((l) => l.properties.id === targetLayerId) - console.debug("Updating background layer to", foundLayer.id,{targetLayerId, queryParam:this._queryParameter.data, preferred: this._preferredBackgroundLayer.data, isCategory}) + console.debug("Updating background layer to", foundLayer?.id,{targetLayerId, queryParam:this._queryParameter?.data, preferred: this._preferredBackgroundLayer?.data, isCategory}) if (foundLayer) { this._rasterLayerSetting.setData(foundLayer) return true