Fix Duplicat elocations (#2512)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2022-04-15 11:29:45 -06:00
1 parent dabf5367bc
commit 8132b04a27
1 file changed
+3 -2
+3 -2
View File
@@ -40,13 +40,14 @@ const defaultLocations: OptionTypeBase[] = [
];
export function getLocationOptions(integrations: AppMeta, t: TFunction) {
const locations = [...defaultLocations];
integrations.forEach((app) => {
if (app.locationOption) {
defaultLocations.push(app.locationOption);
locations.push(app.locationOption);
}
});
return translateLocations(defaultLocations, t);
return translateLocations(locations, t);
}
/**