Skip to content

Commit

Permalink
fix: Errors while displaying LocationMap -(close #910)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Aug 27, 2024
1 parent f49ab2a commit 6962b10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion map/client/mixins/map/mixin.base-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,9 @@ export const baseMap = {
this.$events.off('time-current-time-changed', this.onCurrentMapTimeChanged)
},
unmounted () {
if (this.map) this.map.remove()
if (this.map) {
this.map.off()
this.map.remove()
}
}
}

0 comments on commit 6962b10

Please sign in to comment.