Skip to content

Commit

Permalink
fix cord error
Browse files Browse the repository at this point in the history
  • Loading branch information
KjartanE committed Oct 18, 2024
1 parent c7ee12e commit 083e592
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/src/paths/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,12 @@ const _maskGateKeeper = (originalFeatureArray: string, originalGeoJSON: string)
units: 'meters',
properties: feature.properties
});
featureArray.coordinates[index] = mask.geometry.coordinates;
featureArray.coordinates[index] = mask.geometry.coordinates[0];
}
});
} catch (error) {
console.log('error', error);
throw error;
}

return featureArray;
Expand All @@ -164,6 +165,7 @@ const _findMaskedLocations = (geojsonString: string) => {
}
} catch (error) {
console.log('error', error);
throw error;
}
return maskedLocations;
};
Expand Down

0 comments on commit 083e592

Please sign in to comment.