Update get libraries API call to support updated response payload

This commit is contained in:
advplyr
2022-12-02 17:39:45 -06:00
parent 32dfb3b40a
commit a0faf3f7d4
3 changed files with 18 additions and 11 deletions
+2 -2
View File
@@ -89,9 +89,9 @@ export default {
return
}
this.isFetching = true
var results = await this.$axios.$get(`/api/libraries/${this.currentLibraryId}/search?q=${value}&limit=5`).catch((error) => {
const results = await this.$axios.$get(`/api/libraries/${this.currentLibraryId}/search?q=${value}&limit=5`).catch((error) => {
console.error('Search error', error)
return []
return null
})
if (value !== this.lastSearch) {
console.log(`runSearch: New search was made for ${this.lastSearch} - results are from ${value}`)