Revert "Revert "Revert "Revert "Fix issues with limits. (pull request #1097)"

This commit is contained in:
Allan Carr
2023-12-01 02:37:10 +00:00
parent 98f816b069
commit 5c95c72f40
12 changed files with 32 additions and 23 deletions

View File

@@ -13,6 +13,7 @@ import {
setBreadcrumbs,
setSelectedHeader,
} from "../../redux/application/application.actions";
import {pageLimit} from "../../utils/config";
const mapStateToProps = createStructuredSelector({
//bodyshop: selectBodyshop,
@@ -33,8 +34,8 @@ export function AllJobs({ setBreadcrumbs, setSelectedHeader }) {
fetchPolicy: "network-only",
nextFetchPolicy: "network-only",
variables: {
offset: page ? (page - 1) * 10 : 0,
limit: 25,
offset: page ? (page - 1) * pageLimit : 0,
limit: pageLimit,
...(statusFilters ? { statusList: JSON.parse(statusFilters) } : {}),
order: [
{