mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-29 14:28:34 +02:00
Fix authorize race condition by not updating the user on token refresh #4567
This commit is contained in:
parent
fb3834156b
commit
2c45b28d48
4 changed files with 5 additions and 6 deletions
|
@ -133,7 +133,7 @@ export const actions = {
|
|||
commit('setNumUserPlaylists', numUserPlaylists)
|
||||
commit('scanners/setCustomMetadataProviders', customMetadataProviders, { root: true })
|
||||
|
||||
commit('setCurrentLibrary', libraryId)
|
||||
commit('setCurrentLibrary', { id: libraryId })
|
||||
return data
|
||||
})
|
||||
.catch((error) => {
|
||||
|
@ -182,8 +182,8 @@ export const mutations = {
|
|||
setLibraryIssues(state, val) {
|
||||
state.issues = val
|
||||
},
|
||||
setCurrentLibrary(state, val) {
|
||||
state.currentLibraryId = val
|
||||
setCurrentLibrary(state, { id }) {
|
||||
state.currentLibraryId = id
|
||||
},
|
||||
set(state, libraries) {
|
||||
state.libraries = libraries
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue