Filter out doom bots from UI (champion selector)
All checks were successful
pipeline / build-and-push-images (push) Successful in 1m24s
All checks were successful
pipeline / build-and-push-images (push) Successful in 1m24s
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
const {data: championsData} : ChampionsResponse = await useFetch(CDRAGON_BASE + "plugins/rcp-be-lol-game-data/global/default/v1/champion-summary.json")
|
||||
const champions = championsData.value.slice(1).sort((a, b) => {
|
||||
const champions = championsData.value.slice(1)
|
||||
.filter((champion) =>
|
||||
!champion.name.includes("Doom Bot"))
|
||||
.sort((a, b) => {
|
||||
if(a.name < b.name) return -1;
|
||||
if(a.name > b.name) return 1;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user