diff --git a/src/SelfServe/GraphAPICompute/GraphAPICompute.rp.ts b/src/SelfServe/GraphAPICompute/GraphAPICompute.rp.ts index a80ebff4e..4af619715 100644 --- a/src/SelfServe/GraphAPICompute/GraphAPICompute.rp.ts +++ b/src/SelfServe/GraphAPICompute/GraphAPICompute.rp.ts @@ -151,10 +151,10 @@ export const getReadRegions = async (): Promise> => { }); if (response.result.location !== undefined) { - readRegions.push(response.result.location.replace(" ", "").toLowerCase()); + readRegions.push(response.result.location.split(" ").join("").toLowerCase()); } else { for (const location of response.result.locations) { - readRegions.push(location.locationName.replace(" ", "").toLowerCase()); + readRegions.push(location.locationName.split(" ").join("").toLowerCase()); } } return readRegions;