mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Fix error on ImproveOSM issues with no comments
This commit is contained in:
@@ -21,6 +21,8 @@ export function uiImproveOsmComments() {
|
||||
|
||||
// must retrieve comments from API before they can be displayed
|
||||
services.improveOSM.getComments(_error, function(err, d) {
|
||||
if (!d.comments) { return; } // nothing to do here
|
||||
|
||||
var commentEnter = comments.selectAll('.comment')
|
||||
.data(d.comments)
|
||||
.enter()
|
||||
|
||||
Reference in New Issue
Block a user