Fix: Always re-load libraries when changing users #4694
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Run Component Tests / Run Component Tests (push) Waiting to run
Build and Push Docker Image / build (push) Waiting to run
Integration Test / build and test (push) Waiting to run
Run Unit Tests / Run Unit Tests (push) Waiting to run

This commit is contained in:
advplyr 2025-10-08 15:32:37 -05:00
parent 37beb7b37c
commit 2592467d09
2 changed files with 4 additions and 3 deletions

View file

@ -189,6 +189,7 @@ export default {
require('@/plugins/chromecast.js').default(this)
}
this.$store.commit('libraries/setLastLoad', 0) // Ensure libraries get loaded again when switching users
this.$store.commit('libraries/setCurrentLibrary', { id: userDefaultLibraryId })
this.$store.commit('user/setUser', user)
// Access token only returned from login, not authorize