Skip to content

Commit 059b169

Browse files
authored
1 parent 3966f67 commit 059b169

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.changeset/thin-beers-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@smartcontractkit/operator-ui': patch
3+
---
4+
5+
Fix bug preventing selection of "Rows per page" in jobs/ID/runs page

src/screens/Job/JobView.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe('JobView', () => {
118118
},
119119
})
120120

121-
renderComponent({ job, runsCount: 1 }, '/jobs/1/runs?page=1&per=1')
121+
renderComponent({ job, runsCount: 1 }, '/jobs/1/runs?page=1&size=1')
122122

123123
userEvent.click(getByRole('button', { name: /next-page/i }))
124124

src/screens/Job/TabRuns.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('TabRuns', () => {
2727
Run Page
2828
</Route>
2929
</>,
30-
{ initialEntries: [`/jobs/1/runs?page=${page}&per=${per}`] },
30+
{ initialEntries: [`/jobs/1/runs?page=${page}&size=${per}`] },
3131
)
3232
}
3333

src/screens/Job/TabRuns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const TabRuns: React.FC<Props> = ({ fetchMore, job }) => {
2020
pageSize: number
2121
}>({
2222
page: parseInt(params.get('page') || '1', 10),
23-
pageSize: parseInt(params.get('per') || '10', 10),
23+
pageSize: parseInt(params.get('size') || '10', 10),
2424
})
2525

2626
React.useEffect(() => {

0 commit comments

Comments
 (0)