fix: Clear favourites after destroy
This commit is contained in:
parent
d7b6ac7b7b
commit
14cabecaa3
|
@ -46,6 +46,7 @@ export default {
|
|||
document.getElementById('scrollable').addEventListener('scroll', this.onScroll)
|
||||
},
|
||||
destroyed () {
|
||||
this.$store.commit('TimelineSpace/Contents/Favourites/updateFavourites', [])
|
||||
if (document.getElementById('scrollable') !== undefined && document.getElementById('scrollable') !== null) {
|
||||
document.getElementById('scrollable').removeEventListener('scroll', this.onScroll)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue