diff --git a/CHANGELOG.md b/CHANGELOG.md index c5253295..9c907432 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## (6.1.0 IN PROGRESS) +* 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) diff --git a/lib/LocationFilter/LocationFilterContainer.js b/lib/LocationFilter/LocationFilterContainer.js index 7cf53f6b..9d24900b 100644 --- a/lib/LocationFilter/LocationFilterContainer.js +++ b/lib/LocationFilter/LocationFilterContainer.js @@ -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 (