Update:Changing library while on item page redirects to home

This commit is contained in:
advplyr 2022-08-25 17:58:29 -05:00
parent 79f09b334c
commit 14ff9097c7
2 changed files with 9 additions and 1 deletions

View file

@ -50,8 +50,9 @@ export default {
methods: {
async clickedOption(lib) {
this.show = false
if (lib.id === this.currentLibraryId) return
await this.$store.dispatch('libraries/fetch', lib.id)
this.$eventBus.$emit('library-changed')
this.$eventBus.$emit('library-changed', lib.id)
this.$localStore.setLastLibraryId(lib.id)
}
},