fix/frontend: filter out league classic champions
pipeline / lint-and-format (push) Successful in 4m3s
pipeline / build-and-push-images (push) Successful in 2m3s
pipeline / lint-and-publish-chart (push) Successful in 9s

This commit is contained in:
2026-08-08 22:42:48 +02:00
parent ff9d88d582
commit c45e808c73
+5 -1
View File
@@ -28,10 +28,14 @@ const {
const champions = computed(() => { const champions = computed(() => {
if (!championsData.value || !Array.isArray(championsData.value)) return [] if (!championsData.value || !Array.isArray(championsData.value)) return []
return championsData.value return (
championsData.value
.slice(1) .slice(1)
.filter((champion: ChampionSummary) => !champion.name.includes('Doom Bot')) .filter((champion: ChampionSummary) => !champion.name.includes('Doom Bot'))
// Filter out League Classic champions, prefixed by `jade_`
.filter((champion: ChampionSummary) => !champion.alias.includes('jade_'))
.sort((a: ChampionSummary, b: ChampionSummary) => a.name.localeCompare(b.name)) .sort((a: ChampionSummary, b: ChampionSummary) => a.name.localeCompare(b.name))
)
}) })
const lanesMap = computed(() => { const lanesMap = computed(() => {