Fix:Continue listening shelves show on initial failed connection #1038

This commit is contained in:
advplyr 2024-02-09 17:52:24 -06:00
parent 826d414d9f
commit e15c1bcb32
2 changed files with 6 additions and 7 deletions

View file

@ -327,14 +327,15 @@ export default {
this.$eventBus.$off('library-changed', this.libraryChanged)
}
},
mounted() {
this.initListeners()
console.log(`[categories] mounted so fetching categories`)
this.fetchCategories()
async mounted() {
if (this.$route.query.error) {
this.$toast.error(this.$route.query.error)
}
this.initListeners()
await this.$store.dispatch('globals/loadLocalMediaProgress')
console.log(`[categories] mounted so fetching categories`)
this.fetchCategories()
},
beforeDestroy() {
this.removeListeners()