From 8d07d8502a8192c4310367c0310bc46e65530f37 Mon Sep 17 00:00:00 2001 From: Mikita Siadykh Date: Thu, 8 Feb 2024 12:24:03 +0400 Subject: [PATCH] UIBULKED-412 Not all but up to 10 note types are displayed in Bulk edit (#473) --- CHANGELOG.md | 1 + src/hooks/api/useHoldingsNotes.js | 2 +- src/hooks/api/useItemNotes.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fcf618c5..41e162d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ * [UIBULKED-403](https://issues.folio.org/browse/UIBULKED-403) Integrate query-plugin with bulk-edit API. * [UIBULKED-246](https://issues.folio.org/browse/UIBULKED-246) Enabling Build query button on Query tab. * [UIBULKED-367](https://issues.folio.org/browse/UIBULKED-367) Logs - Provide a link to file with identifiers of the records affected by query. +* [UIBULKED-412](https://issues.folio.org/browse/UIBULKED-412) Not all but up to 10 note types are displayed in Bulk edit. ## [4.0.0](https://github.com/folio-org/ui-bulk-edit/tree/v4.0.0) (2023-10-12) diff --git a/src/hooks/api/useHoldingsNotes.js b/src/hooks/api/useHoldingsNotes.js index 8a6f1e2a..7e65a422 100644 --- a/src/hooks/api/useHoldingsNotes.js +++ b/src/hooks/api/useHoldingsNotes.js @@ -13,7 +13,7 @@ export const useHoldingsNotes = (options = {}) => { queryKey: 'holdingsNotes', cacheTime: Infinity, staleTime: Infinity, - queryFn: () => ky.get('holdings-note-types').json(), + queryFn: () => ky.get('holdings-note-types', { searchParams: { limit: 1000 } }).json(), ...options, }, ); diff --git a/src/hooks/api/useItemNotes.js b/src/hooks/api/useItemNotes.js index b540aa42..168fa083 100644 --- a/src/hooks/api/useItemNotes.js +++ b/src/hooks/api/useItemNotes.js @@ -13,7 +13,7 @@ export const useItemNotes = (options = {}) => { queryKey: 'itemNotes', cacheTime: Infinity, staleTime: Infinity, - queryFn: () => ky.get('item-note-types').json(), + queryFn: () => ky.get('item-note-types', { searchParams: { limit: 1000 } }).json(), ...options, }, );