fix torrent audio footer close

This commit is contained in:
Martti Malmi 2022-08-19 12:41:57 +03:00
parent ce77a03c05
commit 75a981b914
2 changed files with 2 additions and 1 deletions

View File

@ -119,6 +119,7 @@ export default class Node {
}
return;
}
this.children = new Map();
this.value = value;
this.doCallbacks();
this.saveLocalForage();

View File

@ -171,7 +171,7 @@ class Torrent extends Component {
if (!this.coverRef.current) { return; }
this.torrent = torrent;
if (!torrent.files) {
console.error("no torrent.files", torrent);
console.error("no files found in torrent:", torrent);
return;
}
const video = torrent.files.find(f => isVideo(f));