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}`,
|
buildKey: attrs => `topic-map-${attrs.id}`,
|
||||||
|
|
||||||
defaultState(attrs) {
|
defaultState(attrs) {
|
||||||
return { collapsed: (attrs.topicPostsCount || 0) < 50 };
|
return { collapsed: !attrs.hasTopicSummary };
|
||||||
},
|
},
|
||||||
|
|
||||||
html(attrs, state) {
|
html(attrs, state) {
|
||||||
|
|
Loading…
Reference in New Issue