mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: updated filtered replies when replies exist (#16610)
This commit is contained in:
parent
f219ea562f
commit
96e7c85177
|
@ -436,8 +436,11 @@ createWidget("post-contents", {
|
|||
if (this.siteSettings.enable_filtered_replies_view) {
|
||||
const topicController = this.register.lookup("controller:topic");
|
||||
|
||||
defaultState.filteredRepliesShown =
|
||||
topicController.replies_to_post_number === attrs.post_number.toString();
|
||||
if (attrs.post_number) {
|
||||
defaultState.filteredRepliesShown =
|
||||
topicController.replies_to_post_number ===
|
||||
attrs.post_number.toString();
|
||||
}
|
||||
}
|
||||
|
||||
return defaultState;
|
||||
|
|
Loading…
Reference in New Issue
Block a user