Skip to content

Commit

Permalink
fix(national teams): load positions of players for selection of compe…
Browse files Browse the repository at this point in the history
…tition
  • Loading branch information
davidsandoz committed Mar 29, 2024
1 parent a1f3eb8 commit 04d3f64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/national-teams/competitions/_competition/teams.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export default defineComponent({
},
async fetch() {
this.teams = await this.$cmsService.getNationalTeamsForCompetition(this.competition.id);
// We load the positions only if we don't have them already
if (!this.$store.state.playerPositions) {
await this.$store.dispatch('loadPlayerPositions');
}
},
});
</script>

0 comments on commit 04d3f64

Please sign in to comment.