Skip to content

Commit

Permalink
Fix the pagination component so it can be component tested
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgain committed Dec 30, 2024
1 parent 19b3847 commit f49e4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/components/Resource/Paginated.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const PaginatedResource = multiInstance({
qsParamName={sortByQsParamName}
/>
)}
{result ? children(result.results) : null}
{result ? children(result.results || result) : null}
<Pagination
totalPages={totalPages}
activePage={routePage}
Expand Down

0 comments on commit f49e4e4

Please sign in to comment.