mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
blank responses led to an undefined on the user screen
This commit is contained in:
@@ -371,7 +371,9 @@ Discourse.User.reopenClass({
|
||||
insertAt = index + 1;
|
||||
}
|
||||
});
|
||||
result.insertAt(insertAt, responses);
|
||||
if(responses.count > 0) {
|
||||
result.insertAt(insertAt, responses);
|
||||
}
|
||||
return(result);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user