Skip to content

Commit

Permalink
Merge pull request #272 from msupply-foundation/260-pagination-fix
Browse files Browse the repository at this point in the history
260 pagination fix
  • Loading branch information
lache-melvin authored Nov 28, 2023
2 parents d3989a9 + 38fcf9e commit 054fd11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/packages/common/src/ui/layout/tables/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface TableProps<T extends RecordWithId> {
isLoading?: boolean;
noDataMessage?: string;
noDataElement?: JSX.Element;
pagination?: Pagination & { total?: number };
pagination?: Pagination & { total: number | undefined };
onChangePage?: (page: number) => void;
onRowClick?: null | ((row: T) => void);
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const ListView = ({}: ListViewProps) => {
page: queryParams.page,
offset: queryParams.offset,
first: queryParams.first,
total: data?.totalCount,
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const ListView = ({ kind }: ListViewProps) => {
page: queryParams.page,
offset: queryParams.offset,
first: queryParams.first,
total: data?.totalCount,
};

return (
Expand Down

0 comments on commit 054fd11

Please sign in to comment.