Fix tests

This commit is contained in:
Pieter Vander Vennet 2023-11-23 16:13:26 +01:00
parent c508ab4741
commit 2c735f3be8

View file

@ -64,7 +64,7 @@ export class PreferredRasterLayerSelector {
const foundLayer = isCategory const foundLayer = isCategory
? available.find((l) => l.properties.category === targetLayerId) ? available.find((l) => l.properties.category === targetLayerId)
: available.find((l) => l.properties.id === 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) { if (foundLayer) {
this._rasterLayerSetting.setData(foundLayer) this._rasterLayerSetting.setData(foundLayer)
return true return true