Skip to content

Commit 2108248

Browse files
Update Pagination
Update pagination to ensure there are really multiple pages. If you add Search parameters to the api call you may get a response with a `hydra:view` even if there are not enough rows to create pagination
1 parent 1325d7b commit 2108248

File tree

1 file changed

+1
-1
lines changed
  • templates/react/components/foo

1 file changed

+1
-1
lines changed

templates/react/components/foo/List.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class List extends Component {
103103

104104
pagination() {
105105
const view = this.props.retrieved && this.props.retrieved['hydra:view'];
106-
if (!view) return;
106+
if (!view || !view['hydra:first']) return;
107107

108108
const {
109109
'hydra:first': first,

0 commit comments

Comments
 (0)