[web] Fix for the Spotify search

This commit is contained in:
Alain Nussbaumer 2025-05-29 21:56:47 +02:00
parent 5f2785171c
commit fc24c2279f
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -116,7 +116,8 @@ export default {
const [next] = Object.values(data)
items.items.push(...next.items)
this.parameters.offset += next.items.length
loaded(Number(next.next && next.limit), PAGE_SIZE_EXPANDED)
const remaining = Number(next.next && 1000 - this.parameters.offset)
loaded(remaining, PAGE_SIZE_EXPANDED)
})
}
}