We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9358227 commit 2c59bb0Copy full SHA for 2c59bb0
src/ui/layouts/common/Table/index.tsx
@@ -35,6 +35,7 @@ export interface TableProps {
35
}
36
37
const ITEMS_PER_PAGE = parseInt(process.env.REACT_APP_ITEMS_PER_PAGE as string);
38
+const DEFAULT_ITEMS_PER_PAGE = 10;
39
40
export const Table: React.FC<TableProps> = ({
41
headerCols,
@@ -50,7 +51,7 @@ export const Table: React.FC<TableProps> = ({
50
51
52
const { itemsForPage, pages, totalOfPages } = getPaginationData({
53
pageIndex,
- itemsPerPage: ITEMS_PER_PAGE,
54
+ itemsPerPage: ITEMS_PER_PAGE ? ITEMS_PER_PAGE : DEFAULT_ITEMS_PER_PAGE,
55
items: tableRows,
56
});
57
0 commit comments