Skip to content

Commit

Permalink
Merge pull request #1948 from GluuFederation/admin-ui-issue-1947
Browse files Browse the repository at this point in the history
fix(admin-ui): filter is not working on pagination in client active token list.
  • Loading branch information
duttarnab authored Dec 31, 2024
2 parents c581a8d + c4a18de commit ebbe93d
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,17 @@ function ClientActiveTokens({ client }) {
const onPageChangeClick = (page) => {
let startCount = page * limit;
setPageNumber(page);
getTokens(parseInt(startCount), limit, `clnId=${client.inum}`);
let conditionquery = `clnId=${client.inum}`;
if (pattern.dateAfter && pattern.dateBefore) {
conditionquery += `,${searchFilter}>${dayjs(pattern.dateAfter).format(
"YYYY-MM-DD"
)}`;
conditionquery += `,${searchFilter}<${dayjs(pattern.dateBefore).format(
"YYYY-MM-DD"
)}`;
}

getTokens(parseInt(startCount), limit, `${conditionquery}`);
};

const onRowCountChangeClick = (count) => {
Expand Down

0 comments on commit ebbe93d

Please sign in to comment.