"Fix" loading torrent pages directly
This commit is contained in:
parent
1aaf8f8c0d
commit
ce3653c294
|
@ -12,7 +12,6 @@ export function activeTorrents() {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: invoke on page load for /torrents/:id
|
||||
export function updateSubscriptions(added, removed) {
|
||||
if (added.length > 0) {
|
||||
added.forEach(t => {
|
||||
|
|
|
@ -70,6 +70,12 @@ class Torrent extends Component {
|
|||
const { torrent, files } = this.props;
|
||||
const status = s => s[0].toUpperCase() + s.slice(1);
|
||||
|
||||
if (!torrent || !files) {
|
||||
return (
|
||||
<p>Loading...</p>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h3>{torrent.name}</h3>
|
||||
|
|
Loading…
Reference in New Issue
Block a user