Update GraphAPICompute.rp.ts (#1065)
This commit is contained in:
parent
d8840a0dfd
commit
7c186c3ef2
|
@ -151,10 +151,10 @@ export const getReadRegions = async (): Promise<Array<string>> => {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.result.location !== undefined) {
|
if (response.result.location !== undefined) {
|
||||||
readRegions.push(response.result.location.replace(" ", "").toLowerCase());
|
readRegions.push(response.result.location.split(" ").join("").toLowerCase());
|
||||||
} else {
|
} else {
|
||||||
for (const location of response.result.locations) {
|
for (const location of response.result.locations) {
|
||||||
readRegions.push(location.locationName.replace(" ", "").toLowerCase());
|
readRegions.push(location.locationName.split(" ").join("").toLowerCase());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return readRegions;
|
return readRegions;
|
||||||
|
|
Loading…
Reference in New Issue