Skip to content

A full-featured download manager.

fix: select torrent reset

Dr_rOot8b3a5fbaa880
diff --git a/src/renderer/components/Task/SelectTorrent.vue b/src/renderer/components/Task/SelectTorrent.vue
index b86e1502..cfdc8a70 100644
--- a/src/renderer/components/Task/SelectTorrent.vue
+++ b/src/renderer/components/Task/SelectTorrent.vue
@@ -195,7 +195,9 @@
this.name = ''
this.currentTorrent = ''
this.files = []
- this.$refs.torrentTable.clearSelection()
+ if (this.$refs.torrentTable) {
+ this.$refs.torrentTable.clearSelection()
+ }
this.$emit('change', '', NONE_SELECTED_FILES)
},
handleChange (file, fileList) {