mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-06 20:08:48 +02:00
Fix:Error going to local library item page that is storing an old server library item id when server is now using new ids #953
This commit is contained in:
@@ -27,7 +27,13 @@ export default function ({ store }, inject) {
|
||||
data,
|
||||
headers,
|
||||
...options
|
||||
}).then(res => res.data)
|
||||
}).then(res => {
|
||||
if (res.status >= 400) {
|
||||
console.error(`[nativeHttp] ${res.status} status for url "${url}"`)
|
||||
throw new Error(res.data)
|
||||
}
|
||||
return res.data
|
||||
})
|
||||
},
|
||||
get(url, options = {}) {
|
||||
return this.request('GET', url, undefined, options)
|
||||
|
||||
Reference in New Issue
Block a user