FIX: Reply to topic keyboard shortcut raises an error on non-topic routes.

This commit is contained in:
Guo Xiang Tan 2017-03-08 19:52:35 +08:00
parent 801b5838e1
commit 3c41cb6b7d
1 changed files with 1 additions and 0 deletions

View File

@ -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);