Remove useless logging
This commit is contained in:
@@ -19,7 +19,6 @@ const lanesMap = new Map()
|
|||||||
for(let champion of championsLanes.value) {
|
for(let champion of championsLanes.value) {
|
||||||
lanesMap.set(champion.alias, champion.lanes)
|
lanesMap.set(champion.alias, champion.lanes)
|
||||||
}
|
}
|
||||||
console.log(lanesMap)
|
|
||||||
|
|
||||||
const filteredChampions = ref(champions)
|
const filteredChampions = ref(champions)
|
||||||
|
|
||||||
@@ -53,7 +52,7 @@ function onLaneFilterChange(newValue: number) {
|
|||||||
filteredChampions.value = champions.filter((champion) => {
|
filteredChampions.value = champions.filter((champion) => {
|
||||||
const lanes : Array<any> = lanesMap.get(champion.alias.toLowerCase())
|
const lanes : Array<any> = lanesMap.get(champion.alias.toLowerCase())
|
||||||
if(lanes == undefined) return false;
|
if(lanes == undefined) return false;
|
||||||
|
|
||||||
return lanes.reduce((acc : boolean, current : {data:string, count:number}) =>
|
return lanes.reduce((acc : boolean, current : {data:string, count:number}) =>
|
||||||
acc || (current.data == filterToLane(newValue)), false)
|
acc || (current.data == filterToLane(newValue)), false)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user