Fix infinite scroll
This commit is contained in:
@ -68,9 +68,9 @@ export default {
|
||||
if (!res.ok) {
|
||||
throw new Error('Failed to fetch data')
|
||||
}
|
||||
const data = await res.json()
|
||||
const resData = await res.json()
|
||||
|
||||
for (let category of data) {
|
||||
for (let category of resData.data) {
|
||||
this.data.push(category)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user