Skip to content

Commit

Permalink
fix(status-filter): fix cms status filtering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpaige committed Nov 9, 2023
1 parent 35b4780 commit 0732f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/ui/src/components/Opensearch/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const paginationQueryBuilder = (
) => {
const from = (() => {
if (!pagination.number) return 0;
return pagination.number * pagination.size - 1;
return pagination.number * pagination.size;
})();

return {
Expand Down
2 changes: 1 addition & 1 deletion src/services/ui/src/pages/dashboard/Lists/spas/consts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const TABLE_COLUMNS = (props?: {
: BLANK_VALUE,
},
{
field: props?.isCms ? "cmsStatus" : "stateStatus.keyword",
field: props?.isCms ? "cmsStatus.keyword" : "stateStatus.keyword",
label: "Status",
cell: (data) =>
props?.isCms && !(props.user?.["custom:cms-roles"] === UserRoles.HELPDESK)
Expand Down

0 comments on commit 0732f3d

Please sign in to comment.