diff --git a/client/source/scripts/components/torrent-list/TorrentDetails.js b/client/source/scripts/components/torrent-list/TorrentDetails.js index 36107862..f3b2b803 100644 --- a/client/source/scripts/components/torrent-list/TorrentDetails.js +++ b/client/source/scripts/components/torrent-list/TorrentDetails.js @@ -41,7 +41,8 @@ class TorrentDetails extends React.Component { } shouldComponentUpdate(nextProps) { - if (this.props.visible === true || (nextProps.visible !== this.props.visible)) { + if (this.props.visible === true || + (nextProps.visible !== this.props.visible)) { return true; } else { return false; @@ -67,8 +68,10 @@ class TorrentDetails extends React.Component { if (files) { let fileList = files.map(pathItem => { let classes = classNames({ + 'torrent-details__file-data__item': true, 'torrent-details__file-data__filename': true, - [`torrent-details__file-data__depth--${pathItem.pathDepth}`]: pathItem.pathDepth > 0 + [`torrent-details__file-data__depth--${pathItem.pathDepth}`]: + pathItem.pathDepth > 0 }); return (