Skip to content

Commit aa4f986

Browse files
author
Aaron Caldwell
committed
Return null if no geometry
1 parent 8084062 commit aa4f986

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x-pack/legacy/plugins/file_upload/public/util/geo_json_clean_and_validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function geoJsonCleanAndValidate(feature) {
5454

5555
export function cleanGeometry({ geometry }) {
5656
if (!geometry) {
57-
return;
57+
return null;
5858
}
5959
const geometryToWrite = (geometry.isSimple() || geometry.isValid())
6060
? geometry

0 commit comments

Comments
 (0)