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' (#843)
  • Loading branch information
usavkov-epam committed Dec 27, 2024
1 parent 3c2c44b commit 65b1ae6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

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 65b1ae6

Please sign in to comment.