Update EventSchedulerForm.vue (#30)
Set the team reference. Fixes #16 --------- Co-authored-by: HumanoidSandvichDispenser <25856867+HumanoidSandvichDispenser@users.noreply.github.com>master
parent
0396e2409a
commit
f70e6e994f
|
@ -62,7 +62,10 @@ onMounted(() => {
|
||||||
if (eventId.value) {
|
if (eventId.value) {
|
||||||
eventsStore.fetchEvent(eventId.value)
|
eventsStore.fetchEvent(eventId.value)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
teamsStore.fetchTeam(response.teamId);
|
teamsStore.fetchTeam(response.teamId)
|
||||||
|
.then((response) => {
|
||||||
|
team.value = response.team;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue