diff --git a/api/src/paths/search.ts b/api/src/paths/search.ts index 761de682..c0f86050 100644 --- a/api/src/paths/search.ts +++ b/api/src/paths/search.ts @@ -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; @@ -164,6 +165,7 @@ const _findMaskedLocations = (geojsonString: string) => { } } catch (error) { console.log('error', error); + throw error; } return maskedLocations; };