From b2ab5cd95c6c93bf796ee0f3961aba843321828a Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Sat, 17 Jun 2023 07:13:58 +0100 Subject: [PATCH] Fix minor bug with player loading --- website/src/views/sub-views/TeamPublicDetails.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/views/sub-views/TeamPublicDetails.vue b/website/src/views/sub-views/TeamPublicDetails.vue index cd65b1bf..d1aaff8f 100644 --- a/website/src/views/sub-views/TeamPublicDetails.vue +++ b/website/src/views/sub-views/TeamPublicDetails.vue @@ -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 })); }