Skip to content

Commit

Permalink
UIIN-2658: Switch from = to == operator when querying for holdings-st…
Browse files Browse the repository at this point in the history
…orage (#2336)

* UIIN-2658: Switch from = to == operator when quering for holdings-storage/holdings

* Fix typo

* Update changelog

* Cleanup

* Update changelogs
  • Loading branch information
mkuklis authored Nov 8, 2023
1 parent 864ac3d commit 6dd0fa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useHoldingsQueryByHrids.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
);

Expand Down

0 comments on commit 6dd0fa8

Please sign in to comment.