diff --git a/src/ui/page/fileListDownloaded/index.js b/src/ui/page/fileListDownloaded/index.js index 49ba17f9f..615916d62 100644 --- a/src/ui/page/fileListDownloaded/index.js +++ b/src/ui/page/fileListDownloaded/index.js @@ -6,7 +6,7 @@ import { withRouter } from 'react-router'; const select = (state, props) => { const { search } = props.location; const urlParams = new URLSearchParams(search); - const page = Number(urlParams.get('page')) || 0; + const page = Number(urlParams.get('page')) || 1; return { page, downloadedUris: makeSelectDownloadUrisForPage(page)(state), diff --git a/src/ui/page/fileListDownloaded/view.jsx b/src/ui/page/fileListDownloaded/view.jsx index 2e9490093..bb3cc0611 100644 --- a/src/ui/page/fileListDownloaded/view.jsx +++ b/src/ui/page/fileListDownloaded/view.jsx @@ -14,7 +14,7 @@ type Props = { }; function FileListDownloaded(props: Props) { - const { fetching, downloadedUris, downloadedUrisCount, history, page } = props; + const { fetching, downloadedUris, downloadedUrisCount } = props; const hasDownloads = !!downloadedUris.length; return ( // Removed the wapper to try combining this page with UserHistory @@ -29,15 +29,7 @@ function FileListDownloaded(props: Props) { uris={downloadedUris} loading={fetching} /> - { - if (page !== p) { - history.replace(`#/$/published?page=${p}`); - } - }} - totalPages={Math.floor(Number(downloadedUrisCount) / Number(PAGE_SIZE))} - loading={fetching} - /> + ) : (
diff --git a/src/ui/page/fileListPublished/index.js b/src/ui/page/fileListPublished/index.js index 36e016635..4f40b7202 100644 --- a/src/ui/page/fileListPublished/index.js +++ b/src/ui/page/fileListPublished/index.js @@ -7,7 +7,7 @@ import { withRouter } from 'react-router'; const select = (state, props) => { const { search } = props.location; const urlParams = new URLSearchParams(search); - const page = Number(urlParams.get('page')) || 0; + const page = Number(urlParams.get('page')) || 1; return { page, uris: makeSelectMyStreamUrisForPage(page)(state), diff --git a/src/ui/page/fileListPublished/view.jsx b/src/ui/page/fileListPublished/view.jsx index dcb54c5c4..7e7d42085 100644 --- a/src/ui/page/fileListPublished/view.jsx +++ b/src/ui/page/fileListPublished/view.jsx @@ -16,7 +16,7 @@ type Props = { }; function FileListPublished(props: Props) { - const { checkPendingPublishes, fetching, uris, uriTotal, history, page } = props; + const { checkPendingPublishes, fetching, uris, uriTotal } = props; useEffect(() => { checkPendingPublishes(); }, [checkPendingPublishes]); @@ -33,15 +33,7 @@ function FileListPublished(props: Props) { defaultSort headerAltControls={
) : (