use pagination

This commit is contained in:
burnettk 2022-06-15 17:49:05 -04:00
parent 85a7abe1a3
commit cb8f30da1a
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ export default function ProcessGroups() {
)
}, []);
if (processGroups) {
if (processGroups.results) {
return (
<main style={{ padding: "1rem 0" }}>
<ProcessBreadcrumb />
@ -39,7 +39,7 @@ export default function ProcessGroups() {
<br />
<br />
<ul>
{processGroups.map(processGroup => (
{processGroups.results.map(processGroup => (
<li key={processGroup.id}>
<Link to={`/process-groups/${processGroup.id}`}>{processGroup.id}</Link>
</li>