lint common

This commit is contained in:
Matteo Pagliazzi
2019-10-09 20:08:36 +02:00
parent 0c27fb24a5
commit e0e9811ab6
330 changed files with 6885 additions and 7668 deletions
@@ -43,8 +43,8 @@ export default {
};
},
created () {
this.$root.$on('handle-broken-task', (task) => {
this.brokenChallengeTask = Object.assign({}, task);
this.$root.$on('handle-broken-task', task => {
this.brokenChallengeTask = { ...task };
this.$root.$emit('bv::show::modal', 'broken-task-modal');
});
},
@@ -64,10 +64,10 @@ export default {
keep: keepOption,
});
await this.$store.dispatch('tasks:fetchUserTasks', {forceLoad: true});
await this.$store.dispatch('tasks:fetchUserTasks', { forceLoad: true });
if (this.brokenChallengeTask.type === 'todo') {
await this.$store.dispatch('tasks:fetchCompletedTodos', {forceLoad: true});
await this.$store.dispatch('tasks:fetchCompletedTodos', { forceLoad: true });
}
this.close();