Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIIN-2658: Switch from = to == operator when querying for holdings-storage #2336

Merged
merged 8 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 querying for `holdings-storage/holdings` by hrid. Fixes UIIN-2658.
mkuklis marked this conversation as resolved.
Show resolved Hide resolved

## [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
Loading