diff --git a/app/src/components/map/MapOverlay.vue b/app/src/components/map/MapOverlay.vue index 232cac111b..64168dc5f1 100644 --- a/app/src/components/map/MapOverlay.vue +++ b/app/src/components/map/MapOverlay.vue @@ -83,7 +83,9 @@ export default { margin-left: -10px; margin-bottom: -10px; }`; - this.$parent.$refs.mapContainer.shadowRoot.appendChild(style); + if ('mapContainer' in this.$parent.$refs && this.$parent.$refs.mapContainer.shadowRoot) { + this.$parent.$refs.mapContainer.shadowRoot.appendChild(style); + } }, methods: {}, beforeDestroy() { diff --git a/app/src/helpers/customAreaObjects.js b/app/src/helpers/customAreaObjects.js index 280b76548d..659098151b 100644 --- a/app/src/helpers/customAreaObjects.js +++ b/app/src/helpers/customAreaObjects.js @@ -503,7 +503,7 @@ export const nasaStatisticsConfig = ( rescale = (value) => value / 1e14, indicatorCode = 'NASACustomLineChart', ) => ({ - url: 'https://staging-raster.delta-backend.com/cog/statistics', + url: 'https://openveda.cloud/api/raster/cog/statistics', requestMethod: 'POST', requestHeaders: { 'Content-Type': 'application/json',