diff --git a/js/trdom_torrentcontrol.js b/js/trdom_torrentcontrol.js index ab608fd..64defad 100644 --- a/js/trdom_torrentcontrol.js +++ b/js/trdom_torrentcontrol.js @@ -137,8 +137,10 @@ class trdom_torrentcontrol extends EventTarget { break; case 'torrent-deleted': this.#log(6, 'we be delet'); - this.#data = null; - this.updateDOM(); + if (this.exists) { + delete this.#data.name; + this.updateDOM(); + } break; case 'torrent-updated': if (e.detail.torrentHash == this.#hash) {