mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 13:07:08 +00:00
GIS raw: avoid returning nulls
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user