Reloaded completed todos if we are unlinking a todo

This commit is contained in:
thehollidayinn
2017-11-03 10:33:20 -06:00
parent 2e5106fda1
commit 3485a1d0bc

View File

@@ -67,7 +67,13 @@ export default {
challengeId: this.brokenChallengeTask.challenge.id, challengeId: this.brokenChallengeTask.challenge.id,
keep: keepOption, 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});
}
this.close(); this.close();
return; return;
} }