mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Event off fixes (#9918)
* Added removes for all events * Moved to beforeDestroy
This commit is contained in:
@@ -48,8 +48,8 @@ export default {
|
||||
this.$root.$emit('bv::show::modal', 'broken-task-modal');
|
||||
});
|
||||
},
|
||||
removed () {
|
||||
this.$root.$remove('handle-broken-task');
|
||||
beforeDestroy () {
|
||||
this.$root.$off('handle-broken-task');
|
||||
},
|
||||
methods: {
|
||||
...mapActions({
|
||||
|
||||
Reference in New Issue
Block a user