diff --git a/CHANGELOG.md b/CHANGELOG.md index c0c0fabf..a168de59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * [UIBULKED-566](https://folio-org.atlassian.net/browse/UIBULKED-566) Bulk edit form - options cleanup. * [UIBULKED-580](https://folio-org.atlassian.net/browse/UIBULKED-580) Refactor of publish coordinator related logic. +* [UIBULKED-587](https://folio-org.atlassian.net/browse/UIBULKED-587) Only Users from the first page are displayed in "Users" dropdown on "Logs" page. * [UIBULKED-560](https://folio-org.atlassian.net/browse/UIBULKED-560) Update actions menu. ## [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, });