Skip to content

Commit

Permalink
UIIN-2658: Switch from = to == operator when quering for holdings-sto…
Browse files Browse the repository at this point in the history
…rage/holdings
  • Loading branch information
mkuklis committed Nov 7, 2023
1 parent 50f2b95 commit 83eb5b8
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 @@ -6,6 +6,7 @@
* Make Inventory search and browse query boxes expandable. Refs UIIN-2493.
* Added support for `containsAny` match option in Advanced search. Refs UIIN-2486.
* Inventory search/browse: Do not retain checkbox selections when toggling search segment. Refs UIIN-2477.
* Switch from `=` to `==` operator when quering for `holdings-storage/holdings` by hrid. Fixes UIIN-2658.

## [10.0.3] IN PROGRESS

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 83eb5b8

Please sign in to comment.