diff --git a/src/ui/torrent_details.js b/src/ui/torrent_details.js index 65ff4e1..0915d3b 100644 --- a/src/ui/torrent_details.js +++ b/src/ui/torrent_details.js @@ -130,6 +130,7 @@ class Torrent extends Component { shouldComponentUpdate(nextProps, nextState) { return nextProps.torrent !== this.props.torrent + || nextState.removeDropdown !== this.state.removeDropdown || nextState.peersShown !== this.state.peersShown || nextState.trackersShown !== this.state.trackersShown || nextState.filesShown !== this.state.filesShown diff --git a/src/ui/torrent_table.js b/src/ui/torrent_table.js index f53f698..49412a2 100644 --- a/src/ui/torrent_table.js +++ b/src/ui/torrent_table.js @@ -18,11 +18,7 @@ class _Torrent extends Component { const nt = nextProps.torrent; const active = selection.indexOf(torrent.id); const nActive = nextProps.selection.indexOf(torrent.id); - return active !== nActive - || torrent.id !== nt.id - || torrent.status !== nt.status - || torrent.rate_down !== nt.rate_down - || torrent.rate_up !== nt.rate_up; + return active !== nActive || torrent !== nt; } render() {