FIX: Reply to topic keyboard shortcut raises an error on non-topic routes.
This commit is contained in:
parent
801b5838e1
commit
3c41cb6b7d
|
@ -313,6 +313,7 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
|||
|
||||
const quoteState = this.get('quoteState');
|
||||
const postStream = this.get('model.postStream');
|
||||
if (!postStream) return;
|
||||
const quotedPost = postStream.findLoadedPost(quoteState.postId);
|
||||
const quotedText = Quote.build(quotedPost, quoteState.buffer);
|
||||
|
||||
|
|
Loading…
Reference in New Issue