Reduce logging of SetList
This commit is contained in:
parent
29cbc43534
commit
1b9d35d71e
|
@ -27,6 +27,7 @@ export default function SetList() {
|
||||||
const navigation = useNavigation<NavigationProp<HomePageParams>>()
|
const navigation = useNavigation<NavigationProp<HomePageParams>>()
|
||||||
|
|
||||||
const refresh = useCallback(async (value: string) => {
|
const refresh = useCallback(async (value: string) => {
|
||||||
|
console.log(`${SetList.name}.refresh:`, {value, limit})
|
||||||
const newSets = await setRepo.find({
|
const newSets = await setRepo.find({
|
||||||
where: {name: Like(`%${value}%`), hidden: 0 as any},
|
where: {name: Like(`%${value}%`), hidden: 0 as any},
|
||||||
take: limit,
|
take: limit,
|
||||||
|
@ -36,7 +37,6 @@ export default function SetList() {
|
||||||
setSets(newSets)
|
setSets(newSets)
|
||||||
setOffset(0)
|
setOffset(0)
|
||||||
setEnd(false)
|
setEnd(false)
|
||||||
console.log(`${SetList.name}.refresh:`, {newSets})
|
|
||||||
const first = newSets[0]
|
const first = newSets[0]
|
||||||
if (!first) return
|
if (!first) return
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
|
Loading…
Reference in New Issue
Block a user