Skip to content

Commit

Permalink
IBX-3828: The limit has been set to a valid value when calling findLo…
Browse files Browse the repository at this point in the history
…cationsById for the selected locations (#2076)

Co-authored-by: Mateusz Dębiński <mateusz.debinski@ibexa.co>
  • Loading branch information
mateuszdebinski and Mateusz Dębiński authored Nov 15, 2022
1 parent 29e156a commit 891c5eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const UniversalDiscoveryModule = (props) => {
return;
}

findLocationsById({ ...restInfo, id: props.selectedLocations.join(',') }, (locations) => {
findLocationsById({ ...restInfo, id: props.selectedLocations.join(','), limit: props.selectedLocations.length }, (locations) => {
const mappedLocation = props.selectedLocations.map((locationId) => {
const location = locations.find((location) => location.id === parseInt(locationId, 10));

Expand Down

0 comments on commit 891c5eb

Please # to comment.