From 5b12ab4801049188079e35280389a985287c9d54 Mon Sep 17 00:00:00 2001 From: Luc Claustres Date: Thu, 11 Jul 2024 11:59:28 +0200 Subject: [PATCH] fix: Time listener not removed when unmounting activity (closes #900) --- map/client/mixins/globe/mixin.geojson-layers.js | 2 +- map/client/mixins/map/mixin.geojson-layers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/map/client/mixins/globe/mixin.geojson-layers.js b/map/client/mixins/globe/mixin.geojson-layers.js index 0c33b0a4c..a8751f199 100644 --- a/map/client/mixins/globe/mixin.geojson-layers.js +++ b/map/client/mixins/globe/mixin.geojson-layers.js @@ -380,7 +380,7 @@ export const geojsonLayers = { this.geojsonCache = {} }, beforeUnmount () { - this.$events.off('time-current-time-changed', this.onCurrentTimeChangedHeatmapLayers) + this.$events.off('time-current-time-changed', this.onCurrentTimeChangedGeoJsonLayers) this.$engineEvents.off('layer-shown', this.onLayerShownGeoJsonLayers) this.$engineEvents.off('layer-removed', this.onLayerRemovedGeoJsonLayers) diff --git a/map/client/mixins/map/mixin.geojson-layers.js b/map/client/mixins/map/mixin.geojson-layers.js index b5e7b7448..6e7c6b9ad 100644 --- a/map/client/mixins/map/mixin.geojson-layers.js +++ b/map/client/mixins/map/mixin.geojson-layers.js @@ -625,7 +625,7 @@ export const geojsonLayers = { this.geojsonCache = {} }, beforeUnmount () { - this.$events.off('time-current-time-changed', this.onCurrentTimeChangedHeatmapLayers) + this.$events.off('time-current-time-changed', this.onCurrentTimeChangedGeoJsonLayers) this.$engineEvents.off('selected-level-changed', this.onCurrentLevelChangedGeoJsonLayers) this.$engineEvents.off('zoomend', this.onMapZoomChangedGeoJsonLayers) this.$engineEvents.off('layer-shown', this.onLayerShownGeoJsonLayers)