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

This commit is contained in:
Allan Carr
2023-11-30 20:22:42 +00:00
parent a2c2aa11ac
commit 3ca6308dd2
12 changed files with 23 additions and 32 deletions

View File

@@ -36,8 +36,8 @@ export function PhonebookPageComponent({ bodyshop, authLevel }) {
nextFetchPolicy: "network-only",
variables: {
search: search || "",
offset: page ? (page - 1) * pageLimit : 0,
limit: pageLimit,
offset: page ? (page - 1) * 25 : 0,
limit: 25,
order: [
{
[sortcolumn || "lastname"]: sortorder