diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dd040e6..11900fd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Change history for ui-bulk-edit ## In progress +* +* [UIBULKED-587](https://folio-org.atlassian.net/browse/UIBULKED-587) Only Users from the first page are displayed in "Users" dropdown on "Logs" page. ## [4.2.2](https://github.com/folio-org/ui-bulk-edit/tree/v4.2.2) (2024-11-15) diff --git a/src/hooks/api/useBulkOperationUsers.js b/src/hooks/api/useBulkOperationUsers.js index a9ca42c9..ac4fdd0d 100644 --- a/src/hooks/api/useBulkOperationUsers.js +++ b/src/hooks/api/useBulkOperationUsers.js @@ -4,7 +4,7 @@ import { omit } from 'lodash'; import { makeQueryBuilder } from '@folio/stripes-acq-components'; import noop from 'lodash/noop'; -import { LOGS_FILTERS, PAGINATION_CONFIG as pagination } from '../../constants'; +import { LOGS_FILTERS } from '../../constants'; import { useErrorMessages } from '../useErrorMessages'; export const BULK_OPERATION_USERS_KEY = 'BULK_OPERATION_USERS_KEY'; @@ -24,15 +24,12 @@ export const useBulkOperationUsers = (filters, options) => { const searchParams = { query: logsQuery, - limit: pagination.limit, - offset: pagination.offset, }; const { data, isLoading } = useQuery({ queryKey: [namespaceKey, filters], queryFn: () => ky.get('bulk-operations/list-users', { searchParams }).json(), onError: showErrorMessage, - onSuccess: showErrorMessage, ...options, });