Fix Duplicat elocations (#2512)

pull/2513/head^2
Hariom Balhara 2022-04-15 22:59:45 +05:30 committed by GitHub
parent dabf5367bc
commit 8132b04a27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -40,13 +40,14 @@ const defaultLocations: OptionTypeBase[] = [
]; ];
export function getLocationOptions(integrations: AppMeta, t: TFunction) { export function getLocationOptions(integrations: AppMeta, t: TFunction) {
const locations = [...defaultLocations];
integrations.forEach((app) => { integrations.forEach((app) => {
if (app.locationOption) { if (app.locationOption) {
defaultLocations.push(app.locationOption); locations.push(app.locationOption);
} }
}); });
return translateLocations(defaultLocations, t); return translateLocations(locations, t);
} }
/** /**