mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
blank responses led to an undefined on the user screen
This commit is contained in:
parent
58eec31351
commit
cacbcaeb7e
1 changed files with 3 additions and 1 deletions
|
@ -371,7 +371,9 @@ Discourse.User.reopenClass({
|
|||
insertAt = index + 1;
|
||||
}
|
||||
});
|
||||
result.insertAt(insertAt, responses);
|
||||
if(responses.count > 0) {
|
||||
result.insertAt(insertAt, responses);
|
||||
}
|
||||
return(result);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue