From 6b2211f135022c7717d282eb0d01dd7a607bc52b Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 10 Aug 2018 23:17:19 -0700 Subject: [PATCH] Pass offset to pagination --- app/components/PaginatedDocumentList.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/PaginatedDocumentList.js b/app/components/PaginatedDocumentList.js index 1ad102e5..03ba3347 100644 --- a/app/components/PaginatedDocumentList.js +++ b/app/components/PaginatedDocumentList.js @@ -37,7 +37,11 @@ class PaginatedDocumentList extends React.Component { this.isFetching = true; const limit = DEFAULT_PAGINATION_LIMIT; - const results = await this.props.fetch({ limit, ...this.props.options }); + const results = await this.props.fetch({ + limit, + offset: this.offset, + ...this.props.options, + }); if ( results &&