diff --git a/src/component/fileListItem/view.js b/src/component/fileListItem/view.js index 4dc974d..c2faa83 100644 --- a/src/component/fileListItem/view.js +++ b/src/component/fileListItem/view.js @@ -13,6 +13,10 @@ import ProgressBar from 'component/progressBar'; import fileListStyle from 'styles/fileList'; class FileListItem extends React.PureComponent { + state = { + url: null, + }; + getStorageForFileInfo = fileInfo => { if (!fileInfo.completed) { const written = formatBytes(fileInfo.written_bytes); @@ -44,8 +48,8 @@ class FileListItem extends React.PureComponent { componentDidUpdate() { const { claim, resolveUri, uri } = this.props; - if (!claim) { - resolveUri(uri); + if (!claim && uri !== this.state.url) { + this.setState({ url: uri }, () => resolveUri(uri)); } }