diff --git a/CHANGELOG.md b/CHANGELOG.md index 483b2a712..18eeaadc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ * Show only local MARC Authorities when share local instance. Fixes UIIN-2647. * Single instance export - MARC files sent to central tenant from member tenant. Fixes UIIN-2613. * Fix misspelled Instance notes (all) advanced search query index. Fixes UIIN-2677. +* Switch from `=` to `==` operator when querying for `holdings-storage/holdings` by hrid. Fixes UIIN-2658. ## [10.0.2](https://github.com/folio-org/ui-inventory/tree/v10.0.2) (2023-11-07) [Full Changelog](https://github.com/folio-org/ui-inventory/compare/v10.0.1...v10.0.2) diff --git a/src/hooks/useHoldingsQueryByHrids.js b/src/hooks/useHoldingsQueryByHrids.js index f89bf1617..26cbad061 100644 --- a/src/hooks/useHoldingsQueryByHrids.js +++ b/src/hooks/useHoldingsQueryByHrids.js @@ -10,7 +10,7 @@ const useHoldingsQueryByHrids = (holdingsRecordHrids) => { const { isLoading, data } = useQuery( [namespace, queryHrids], - () => ky.get(`holdings-storage/holdings?query=hrid=(${queryHrids})`).json(), + () => ky.get(`holdings-storage/holdings?query=hrid==(${queryHrids})`).json(), { enabled: Boolean(queryHrids) }, );