diff --git a/src/components/Modals/ConfirmDeleteModal.vue b/src/components/Modals/ConfirmDeleteModal.vue index 25d3500e..6d78298d 100644 --- a/src/components/Modals/ConfirmDeleteModal.vue +++ b/src/components/Modals/ConfirmDeleteModal.vue @@ -62,9 +62,11 @@ export default { return this.getTorrents().filter(t => this.selected_torrents.includes(t.hash)) } }, + beforeDestroy() { + this.$store.state.selected_torrents = [] + }, methods: { close() { - this.$store.state.selected_torrents = [] this.$store.commit('DELETE_MODAL', this.guid) }, deleteWithoutFiles() {