mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Top map is actually expanded when there is a summary
This commit is contained in:
parent
dd65e78431
commit
5bfc9cdf50
@ -186,7 +186,7 @@ export default createWidget('topic-map', {
|
||||
buildKey: attrs => `topic-map-${attrs.id}`,
|
||||
|
||||
defaultState(attrs) {
|
||||
return { collapsed: (attrs.topicPostsCount || 0) < 50 };
|
||||
return { collapsed: !attrs.hasTopicSummary };
|
||||
},
|
||||
|
||||
html(attrs, state) {
|
||||
|
Loading…
Reference in New Issue
Block a user