fix/frontend: filter out league classic champions
This commit is contained in:
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user