mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 13:54:01 +02:00
Remove hardcoded search result limit of 5
The search API call had a hardcoded limit=5 parameter which restricted search results to only 5 items regardless of how many matches exist. Removing this limit allows the server's default pagination to apply, showing all relevant search results to the user. Fixes #1872
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.isFetching = true
|
this.isFetching = true
|
||||||
const results = await this.$nativeHttp.get(`/api/libraries/${this.currentLibraryId}/search?q=${value}&limit=5`).catch((error) => {
|
const results = await this.$nativeHttp.get(`/api/libraries/${this.currentLibraryId}/search?q=${value}`).catch((error) => {
|
||||||
console.error('Search error', error)
|
console.error('Search error', error)
|
||||||
return null
|
return null
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user