diff --git a/packages/console/src/components/AuditLogTable/index.tsx b/packages/console/src/components/AuditLogTable/index.tsx index dac6a32ca..2a58c86af 100644 --- a/packages/console/src/components/AuditLogTable/index.tsx +++ b/packages/console/src/components/AuditLogTable/index.tsx @@ -39,8 +39,8 @@ const AuditLogTable = ({ userId, className }: Props) => { const applicationId = query.get('applicationId'); const url = buildUrl('/api/logs', { - page: `${pageIndex}`, - page_size: `${pageSize}`, + page: String(pageIndex), + page_size: String(pageSize), ...conditional(event && { logType: event }), ...conditional(applicationId && { applicationId }), ...conditional(userId && { userId }), diff --git a/packages/console/src/components/RoleUsersTransfer/SourceUsersBox.tsx b/packages/console/src/components/RoleUsersTransfer/SourceUsersBox.tsx index 92e7bb82c..853cc0c46 100644 --- a/packages/console/src/components/RoleUsersTransfer/SourceUsersBox.tsx +++ b/packages/console/src/components/RoleUsersTransfer/SourceUsersBox.tsx @@ -47,8 +47,8 @@ const SourceUsersBox = ({ roleId, selectedUsers, onAddUser, onRemoveUser }: Prop const url = buildUrl('/api/users', { excludeRoleId: roleId, hideAdminUser: 'true', - page: `${pageIndex}`, - page_size: `${pageSize}`, + page: String(pageIndex), + page_size: String(pageSize), ...conditional(keyword && { search: `%${keyword}%` }), }); diff --git a/packages/console/src/pages/ApiResources/index.tsx b/packages/console/src/pages/ApiResources/index.tsx index ca69af4b7..87ad5c65d 100644 --- a/packages/console/src/pages/ApiResources/index.tsx +++ b/packages/console/src/pages/ApiResources/index.tsx @@ -41,8 +41,8 @@ const ApiResources = () => { const pageIndex = Number(query.get('page') ?? '1'); const url = buildUrl('/api/resources', { - page: `${pageIndex}`, - page_size: `${pageSize}`, + page: String(pageIndex), + page_size: String(pageSize), }); const { data, error, mutate } = useSWR<[Resource[], number], RequestError>(url); diff --git a/packages/console/src/pages/Applications/index.tsx b/packages/console/src/pages/Applications/index.tsx index 6bd3ee433..2993e51f3 100644 --- a/packages/console/src/pages/Applications/index.tsx +++ b/packages/console/src/pages/Applications/index.tsx @@ -37,8 +37,8 @@ const Applications = () => { const search = query.toString(); const pageIndex = Number(query.get('page') ?? '1'); const url = buildUrl('/api/applications', { - page: `${pageIndex}`, - page_size: `${pageSize}`, + page: String(pageIndex), + page_size: String(pageSize), }); const { data, error, mutate } = useSWR<[Application[], number], RequestError>(url); diff --git a/packages/console/src/pages/Users/index.tsx b/packages/console/src/pages/Users/index.tsx index 101b92471..7319ffbb7 100644 --- a/packages/console/src/pages/Users/index.tsx +++ b/packages/console/src/pages/Users/index.tsx @@ -45,8 +45,8 @@ const Users = () => { const url = buildUrl('/api/users', { hideAdminUser: 'true', - page: `${pageIndex}`, - page_size: `${pageSize}`, + page: String(pageIndex), + page_size: String(pageSize), ...conditional(keyword && { search: `%${keyword}%` }), });