From 891c5ebddb4b25ef2816ee91711cc06b51838fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20D=C4=99bi=C5=84ski?= <58430570+mateuszdebinski@users.noreply.github.com> Date: Tue, 15 Nov 2022 13:45:37 +0100 Subject: [PATCH] IBX-3828: The limit has been set to a valid value when calling findLocationsById for the selected locations (#2076) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mateusz Dębiński --- .../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));