blank responses led to an undefined on the user screen

This commit is contained in:
Sam 2013-07-19 17:21:51 +10:00
parent 58eec31351
commit cacbcaeb7e

View file

@ -371,7 +371,9 @@ Discourse.User.reopenClass({
insertAt = index + 1;
}
});
result.insertAt(insertAt, responses);
if(responses.count > 0) {
result.insertAt(insertAt, responses);
}
return(result);
},