Skip to content

Commit 0d9cef6

Browse files
committed
fix: update comment to reflect correct number of displayed items per page in access tables
1 parent a2a412a commit 0d9cef6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modules/apps/app/AppAccessTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function useAppAccessData({
2121

2222
const pageSize = DETAIL_TABLE_LENGTH * 2;
2323

24-
// API returns min 10 items, but we display only 5 per page
24+
// API returns min 10 items, but we display only 8 per page
2525
const apiBatch = Math.floor((currentPage * DETAIL_TABLE_LENGTH) / pageSize);
2626
const startIndexInBatch = (currentPage * DETAIL_TABLE_LENGTH) % pageSize;
2727

src/modules/workerpools/workerpool/WorkerpoolAccessTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function useWorkerpoolAccessData({
2121

2222
const pageSize = DETAIL_TABLE_LENGTH * 2;
2323

24-
// API returns min 10 items, but we display only 5 per page
24+
// API returns min 10 items, but we display only 8 per page
2525
const apiBatch = Math.floor((currentPage * DETAIL_TABLE_LENGTH) / pageSize);
2626
const startIndexInBatch = (currentPage * DETAIL_TABLE_LENGTH) % pageSize;
2727

0 commit comments

Comments
 (0)