Skip to content

Commit 8132b04

Browse files
Fix Duplicat elocations (#2512)
1 parent dabf536 commit 8132b04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/app-store/utils.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ const defaultLocations: OptionTypeBase[] = [
4040
];
4141

4242
export function getLocationOptions(integrations: AppMeta, t: TFunction) {
43+
const locations = [...defaultLocations];
4344
integrations.forEach((app) => {
4445
if (app.locationOption) {
45-
defaultLocations.push(app.locationOption);
46+
locations.push(app.locationOption);
4647
}
4748
});
4849

49-
return translateLocations(defaultLocations, t);
50+
return translateLocations(locations, t);
5051
}
5152

5253
/**

0 commit comments

Comments
 (0)