mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 19:28:40 +08: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 postStream = this.get('model.postStream');
|
||||
if (!postStream) return;
|
||||
const quotedPost = postStream.findLoadedPost(quoteState.postId);
|
||||
const quotedText = Quote.build(quotedPost, quoteState.buffer);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user