From 4cb7bea0f3b51b5ffa3ee801de14f3fd874e9a3e Mon Sep 17 00:00:00 2001 From: Lubomir Dolezal Date: Fri, 5 Jan 2024 11:42:34 +0100 Subject: [PATCH] fix: regression --- app/src/components/IndicatorGlobe.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/components/IndicatorGlobe.vue b/app/src/components/IndicatorGlobe.vue index d1071d91de..5bb748a3dc 100644 --- a/app/src/components/IndicatorGlobe.vue +++ b/app/src/components/IndicatorGlobe.vue @@ -138,10 +138,10 @@ export default { ...mapState('config', ['appConfig', 'baseConfig']), baseLayers() { // expects an array of objects - return this.mergedConfigsData[0].baseLayers || this.baseConfig.baseLayersMap; + return this.baseConfig.baseLayersMap; }, overlayLayers() { - return this.mergedConfigsData[0].overlayLayers || this.baseConfig.overlayLayersMap; + return this.baseConfig.overlayLayersMap; }, attributions() { return [ @@ -263,7 +263,7 @@ export default { minimumLevel: config.minZoom ? config.minZoom : 1, maximumLevel: config.maxZoom ? config.maxZoom : 10, customTags: { - time: () => config.dateFormatFunction(this.dataLayerTime.value), + time: () => config.dateFormatFunction ? config.dateFormatFunction(this.dataLayerTime.value) : this.dataLayerTime.value, }, }); break; @@ -276,7 +276,7 @@ export default { parameters: { format: 'image/png', transparent: 'true', - time: config.dateFormatFunction(this.dataLayerTime.value), + time: config.dateFormatFunction ? config.dateFormatFunction(this.dataLayerTime.value) : this.dataLayerTime.value, }, tileWidth: config.tileSize, tileHeight: config.tileSize,