mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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 quoteState = this.get('quoteState');
|
||||||
const postStream = this.get('model.postStream');
|
const postStream = this.get('model.postStream');
|
||||||
|
if (!postStream) return;
|
||||||
const quotedPost = postStream.findLoadedPost(quoteState.postId);
|
const quotedPost = postStream.findLoadedPost(quoteState.postId);
|
||||||
const quotedText = Quote.build(quotedPost, quoteState.buffer);
|
const quotedText = Quote.build(quotedPost, quoteState.buffer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user