diff --git a/app/assets/javascripts/discourse/models/user.js b/app/assets/javascripts/discourse/models/user.js index 6478f85f6..898bd881c 100644 --- a/app/assets/javascripts/discourse/models/user.js +++ b/app/assets/javascripts/discourse/models/user.js @@ -371,7 +371,9 @@ Discourse.User.reopenClass({ insertAt = index + 1; } }); - result.insertAt(insertAt, responses); + if(responses.count > 0) { + result.insertAt(insertAt, responses); + } return(result); },