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

UISACQCOMP-239 Claim locations from all members for locations filter when crossTenant equals true #843

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -8,6 +8,7 @@
* Move reusable version history hook useVersionHistoryValueResolvers to the ACQ lib. Refs UISACQCOMP-235.
* Move reusable claiming code from `ui-receiving` to the shared library. Refs UISACQCOMP-236.
* Support `CLAIMS` export type in the `useIntegrationConfigs` hook. Refs UISACQCOMP-238.
* Claim locations from all members for locations filter when `crossTenant` equals `true`. Refs UISACQCOMP-239.

## [6.0.2](https://github.com/folio-org/stripes-acq-components/tree/v6.0.2) (2024-12-04)
[Full Changelog](https://github.com/folio-org/stripes-acq-components/compare/v6.0.1...v6.0.2)
Expand Down
5 changes: 4 additions & 1 deletion lib/LocationFilter/LocationFilterContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ const LocationFilterContainer = ({
isLoading,
} = useLocationsQuery({
consortium: crossTenant,
tenantId,
/*
Locations filter should ignore `tenantId` param when `crossTenant` equals `true` to be able to display valid references from all selected members.
*/
tenantId: crossTenant ? undefined : tenantId,
});

return (
Expand Down
Loading