Skip to content

Commit 973ce2e

Browse files
committed
UISACQCOMP-239 Claim locations from all members for locations filter when 'crossTenant' equals 'true'
1 parent a2bf4fe commit 973ce2e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Move reusable version history hook useVersionHistoryValueResolvers to the ACQ lib. Refs UISACQCOMP-235.
99
* Move reusable claiming code from `ui-receiving` to the shared library. Refs UISACQCOMP-236.
1010
* Support `CLAIMS` export type in the `useIntegrationConfigs` hook. Refs UISACQCOMP-238.
11+
* Claim locations from all members for locations filter when `crossTenant` equals `true`. Refs UISACQCOMP-239.
1112

1213
## [6.0.2](https://github.com/folio-org/stripes-acq-components/tree/v6.0.2) (2024-12-04)
1314
[Full Changelog](https://github.com/folio-org/stripes-acq-components/compare/v6.0.1...v6.0.2)

lib/LocationFilter/LocationFilterContainer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ const LocationFilterContainer = ({
1919
isLoading,
2020
} = useLocationsQuery({
2121
consortium: crossTenant,
22-
tenantId,
22+
/*
23+
Locations filter should ignore `tenantId` param when `crossTenant` equals `true` to be able to display valid references from all selected members.
24+
*/
25+
tenantId: crossTenant ? undefined : tenantId,
2326
});
2427

2528
return (

0 commit comments

Comments
 (0)