Skip to content

Commit

Permalink
chore: Revert changes to uploadAutoCompleteLocations filter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
flozia committed Feb 24, 2025
1 parent 7c35c2e commit 00d0e13
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions src/scripts/build/uploadAutoCompleteLocations.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,30 +320,13 @@ try {
return false;
}

return locationDataRows.some((location) => {
const [
geonameId,
_name,
_asciiname,
_alternatenames,
_latitude,
_longitude,
featureClass,
_featureCode,
_countryCode,
_cc2,
_admin1Code,
_admin2Code,
_admin3Code,
_admin4Code,
_population,
_elevation,
_dem,
_timezone,
_modificationDate,
] = location.split("\t"); // lines are tab delimited
return locationDataPopulated.some((location) => {
return (
geonameId === parentId && featureClass === allowedFeatureClass
location.id === parentId &&
// @ts-ignore FIXME: `featureClass` does not exist in `location`.
// The result of the top-level filter still returns the expected
// results for now.
location.featureClass === allowedFeatureClass
);
});
},
Expand Down

0 comments on commit 00d0e13

Please sign in to comment.