Skip to content

Commit

Permalink
Add team filter for standings
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Jan 27, 2023
1 parent 7736050 commit 6a5d080
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions website/src/components/broadcast/Standings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import { ReactiveArray, ReactiveThing } from "@/utils/reactive";
import StandingsTeam from "@/components/broadcast/StandingsTeam";
import { sortTeamsIntoStandings } from "@/utils/scenarios";
import { cleanID } from "@/utils/content-utils";
function avg(arr) {
Expand Down Expand Up @@ -288,6 +289,10 @@ export default {
if (a.standings.map_losses < b.standings.map_losses) return -1;
};
if (this.standingsSettings?.hide?.length) {
teams = teams.filter(team => !this.standingsSettings.hide.find(id => cleanID(id) === cleanID(team.id)));
}
teams = teams.sort(sortFunction);
// console.log("[standings teams]", teams);
Expand Down

0 comments on commit 6a5d080

Please sign in to comment.