blank responses led to an undefined on the user screen
This commit is contained in:
parent
58eec31351
commit
cacbcaeb7e
|
@ -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 New Issue