Pass offset to pagination

This commit is contained in:
Tom Moor
2018-08-10 23:17:19 -07:00
parent 2de9fedcc0
commit 6b2211f135

View File

@ -37,7 +37,11 @@ class PaginatedDocumentList extends React.Component<Props> {
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 &&