mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
Reloaded completed todos if we are unlinking a todo
This commit is contained in:
parent
2e5106fda1
commit
3485a1d0bc
1 changed files with 6 additions and 0 deletions
|
|
@ -67,7 +67,13 @@ export default {
|
|||
challengeId: this.brokenChallengeTask.challenge.id,
|
||||
keep: keepOption,
|
||||
});
|
||||
|
||||
await this.$store.dispatch('tasks:fetchUserTasks', {forceLoad: true});
|
||||
|
||||
if (this.brokenChallengeTask.type === 'todo') {
|
||||
await this.$store.dispatch('tasks:fetchCompletedTodos', {forceLoad: true});
|
||||
}
|
||||
|
||||
this.close();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue