Fix error on ImproveOSM issues with no comments

This commit is contained in:
SilentSpike
2019-02-05 21:48:06 +00:00
parent 0346d8060f
commit a566d58f81
+2
View File
@@ -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()