Changesets without closed_at property throw Cannot read property 'toString' of null
error
#240
Open
1 of 3 tasks
feature requestBrief Description
Loading of some changesets fails.
What is the current behaviour, (attach relevant screenshots) ?
TypeError: Cannot read property 'toString' of null
What is the expected behaviour ?
A better error message or maybe no error at all.
When does this occur ?
When the changeset has no closed_at property.
How do we replicate the issue ?
Example changeset: https://www.openstreetmap.org/api/0.6/changeset/109618303.json?include_discussion=true
Other Information / context:
c.to
can be nullchangeset-map/lib/query.js
Line 21 in df4dbcb
(null).toString()
does not workchangeset-map/lib/getChangeset.js
Line 79 in df4dbcb
Possible solutions:
The text was updated successfully, but these errors were encountered: