Skip to content

Commit

Permalink
Fix minor bug with player loading
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Jun 17, 2023
1 parent 37a8b98 commit b2ab5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/views/sub-views/TeamPublicDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
},
computed: {
players() {
let players = this.team?.players;
let players = (this.team?.players || []).filter(p => !p.__loading && p.id);
if (!players?.length && this.team.limited_players?.length) {
players = this.team.limited_players.filter(p => p.name && p.role !== "Staff").map(p => ({ ...p, limited: true, is_captain: p.captain || p.is_captain }));
}
Expand Down

0 comments on commit b2ab5cd

Please sign in to comment.