mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Reloaded completed todos if we are unlinking a todo
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user