Skip to content

Commit

Permalink
general: fix countryCode missing center (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz authored May 21, 2024
1 parent bda6186 commit eb02154
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/osmApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ const fetchFeatureWithCenter = async (apiId: OsmApiId) => {
const feature = osmToFeature(element);
if (center) {
feature.center = center;
feature.countryCode = await resolveCountryCode(center); // takes 0-100ms for first resolution, then instant
}

feature.countryCode = await resolveCountryCode(feature.center); // takes 0-100ms for first resolution, then instant

return addSchemaToFeature(feature);
};

Expand Down

0 comments on commit eb02154

Please sign in to comment.