Fix:Remove collections when removing library

This commit is contained in:
advplyr 2022-11-11 17:44:19 -06:00
parent 6f901defd6
commit 28feed6ea2
6 changed files with 55 additions and 38 deletions

View file

@ -52,7 +52,7 @@ export default {
return redirect('/')
}
store.commit('user/addUpdateCollection', collection)
store.commit('libraries/addUpdateCollection', collection)
return {
collectionId: collection.id
}
@ -80,7 +80,7 @@ export default {
return this.collection.description || ''
},
collection() {
return this.$store.getters['user/getCollection'](this.collectionId)
return this.$store.getters['libraries/getCollection'](this.collectionId) || {}
},
playableBooks() {
return this.bookItems.filter((book) => {