GIS raw: avoid returning nulls

This commit is contained in:
D. Berge
2020-08-11 20:19:58 +02:00
parent f1b2671d90
commit ab6298cd42

View File

@@ -73,7 +73,7 @@ async function points (projectId, options = {}) {
return res.rows.map(r => [
JSON.parse(r.geojson),
JSON.parse(r.delta)
]).flat();
]).flat().filter(i => i != null);
} else {
throw {status: 404};
}