Skip to content

Commit

Permalink
UIBULKED-587 Only Users from the first page are displayed in "Users" …
Browse files Browse the repository at this point in the history
…dropdown on "Logs" page (#656)

(cherry picked from commit 0eb7964)
  • Loading branch information
vashjs committed Nov 28, 2024
1 parent deb7aa7 commit 902d8ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
5 changes: 1 addition & 4 deletions src/hooks/api/useBulkOperationUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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,
});

Expand Down

0 comments on commit 902d8ff

Please sign in to comment.