mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
Changes for fixing issue 11420 (#11521)
This commit is contained in:
parent
3fa0bac36f
commit
106290a11e
1 changed files with 6 additions and 1 deletions
|
|
@ -417,7 +417,12 @@ export default {
|
||||||
return cleansedTask;
|
return cleansedTask;
|
||||||
},
|
},
|
||||||
async loadChallenge () {
|
async loadChallenge () {
|
||||||
this.challenge = await this.$store.dispatch('challenges:getChallenge', { challengeId: this.searchId });
|
try {
|
||||||
|
this.challenge = await this.$store.dispatch('challenges:getChallenge', { challengeId: this.searchId });
|
||||||
|
} catch (e) {
|
||||||
|
this.$router.push('/challenges/findChallenges');
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.members = await this
|
this.members = await this
|
||||||
.loadMembers({ challengeId: this.searchId, includeAllPublicFields: true });
|
.loadMembers({ challengeId: this.searchId, includeAllPublicFields: true });
|
||||||
const tasks = await this.$store.dispatch('tasks:getChallengeTasks', { challengeId: this.searchId });
|
const tasks = await this.$store.dispatch('tasks:getChallengeTasks', { challengeId: this.searchId });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue