Skip to content

Commit 054fd11

Browse files
authored
Merge pull request #272 from msupply-foundation/260-pagination-fix
260 pagination fix
2 parents d3989a9 + 38fcf9e commit 054fd11

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

frontend/packages/common/src/ui/layout/tables/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface TableProps<T extends RecordWithId> {
2525
isLoading?: boolean;
2626
noDataMessage?: string;
2727
noDataElement?: JSX.Element;
28-
pagination?: Pagination & { total?: number };
28+
pagination?: Pagination & { total: number | undefined };
2929
onChangePage?: (page: number) => void;
3030
onRowClick?: null | ((row: T) => void);
3131
}

frontend/packages/system/src/NotificationEvents/ListView/ListView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export const ListView = ({}: ListViewProps) => {
9393
page: queryParams.page,
9494
offset: queryParams.offset,
9595
first: queryParams.first,
96+
total: data?.totalCount,
9697
};
9798

9899
return (

frontend/packages/system/src/Notifications/ListView/ListView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export const ListView = ({ kind }: ListViewProps) => {
8686
page: queryParams.page,
8787
offset: queryParams.offset,
8888
first: queryParams.first,
89+
total: data?.totalCount,
8990
};
9091

9192
return (

0 commit comments

Comments
 (0)