Skip to content

Commit

Permalink
fix: added a page limit
Browse files Browse the repository at this point in the history
  • Loading branch information
SPageot committed Apr 25, 2022
1 parent 57fab16 commit 8ec8403
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/components/blocks/APIStagingPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
ControlsContainer,
PaginationContainer,
} from '..';
import constants from '../../constants';
import { getStagingPaginatedData } from '../../store/actions/climateWarehouseActions';

const APIStagingPagination = withTheme(
Expand All @@ -33,7 +34,7 @@ const APIStagingPagination = withTheme(
type: actions,
page: newPage,
formType: formType[0]?.table,
resultsLimit: 1,
resultsLimit: constants.MAX_TABLE_SIZE,
};

dispatch(getStagingPaginatedData(options));
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Projects/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const Projects = () => {
type: 'staging',
page: 1,
formType: 'Projects',
resultsLimit: 1,
resultsLimit: constants.MAX_TABLE_SIZE,
};
dispatch(getStagingPaginatedData(options));
}, [dispatch]);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Units/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const Units = () => {
type: 'staging',
page: 1,
formType: 'Units',
resultsLimit: 1,
resultsLimit: constants.MAX_TABLE_SIZE,
};
dispatch(getStagingPaginatedData(options));
}, [dispatch]);
Expand Down

0 comments on commit 8ec8403

Please sign in to comment.