From ebd6659f74dd03ada13edccd9174799a19cb4dc5 Mon Sep 17 00:00:00 2001 From: Yury Saukou Date: Tue, 24 Dec 2024 12:49:57 +0400 Subject: [PATCH] UISACQCOMP-239 Claim locations from all members for locations filter when 'crossTenant' equals 'true' (#843) --- CHANGELOG.md | 1 + lib/LocationFilter/LocationFilterContainer.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 872718d5..26df450f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) 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 (