diff --git a/src/ui/add_torrent.js b/src/ui/add_torrent.js index 141efc5..f47203a 100644 --- a/src/ui/add_torrent.js +++ b/src/ui/add_torrent.js @@ -341,14 +341,21 @@ class AddTorrent extends Component { {magnet && "Magnet link" || file.name}
- {Object.keys(details).map(key => - torrent[key] && ( + {Object.keys(details).map(key => { + const val = torrent[key]; + if (!val) { + return null; + } + if (typeof val === "string" && !val.trim()) { + return null; + } + return (
{key}
{details[key](torrent[key])}
- ) - )} + ); + })}