Skip to content

Commit

Permalink
-1 array
Browse files Browse the repository at this point in the history
  • Loading branch information
amanmahajan7 committed Oct 24, 2024
1 parent 8438db8 commit a3d1f21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/routes/CommonFeatures.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,11 @@ let countries: string[] = [];
function createRows(): readonly Row[] {
const now = Date.now();
const rows: Row[] = [];
const allCountries = [];
const countrySet = new Set<string>();

for (let i = 0; i < 1000; i++) {
const country = faker.location.country();
allCountries.push(country);
countrySet.add(country);

rows.push({
id: i,
Expand All @@ -276,7 +276,7 @@ function createRows(): readonly Row[] {
});
}

countries = [...new Set(allCountries)].sort(new Intl.Collator().compare);
countries = [...countrySet].sort(new Intl.Collator().compare);

return rows;
}
Expand Down

0 comments on commit a3d1f21

Please sign in to comment.