From d0eec1a07f20eb68dc8c6b41d3f674ba06a56609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20D=C4=99bi=C5=84ski?= Date: Thu, 10 Nov 2022 16:42:14 +0100 Subject: [PATCH] IBX-3828: The limit has been set to a valid value when calling findLocationsById for the selected locations --- .../modules/universal-discovery/universal.discovery.module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/ui-dev/src/modules/universal-discovery/universal.discovery.module.js b/src/bundle/ui-dev/src/modules/universal-discovery/universal.discovery.module.js index 9554552f6a..5c5cb0fd64 100644 --- a/src/bundle/ui-dev/src/modules/universal-discovery/universal.discovery.module.js +++ b/src/bundle/ui-dev/src/modules/universal-discovery/universal.discovery.module.js @@ -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));