Skip to content

Commit

Permalink
UISACQCOMP-239 Claim locations from all members for locations filter …
Browse files Browse the repository at this point in the history
…when 'crossTenant' equals 'true'
  • Loading branch information
usavkov-epam committed Dec 24, 2024
1 parent a2bf4fe commit 973ce2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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

0 comments on commit 973ce2e

Please sign in to comment.