Fix ItemSlider component select

This commit is contained in:
advplyr 2024-06-24 16:37:02 -05:00
parent f541bc2159
commit 514fb5f7da

View File

@ -192,23 +192,13 @@ export default {
},
mounted() {
this.setScrollVars()
switch (this.type) {
case 'series':
return
case 'authors':
return
default:
if (['book', 'podcast', 'episode'].includes(this.type)) {
this.$eventBus.$on('bookshelf_clear_selection', this.clearSelectedEntities)
this.$eventBus.$on('item-selected', this.itemSelectedEvt)
}
},
beforeDestroy() {
switch (this.type) {
case 'series':
return
case 'authors':
return
default:
if (['book', 'podcast', 'episode'].includes(this.type)) {
this.$eventBus.$off('bookshelf_clear_selection', this.clearSelectedEntities)
this.$eventBus.$off('item-selected', this.itemSelectedEvt)
}