mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 22:04:45 +08:00
FIX: Broken test
This commit is contained in:
parent
2747e14b4c
commit
566b0bbb75
@ -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 < 50 };
|
return { collapsed: (attrs.topicPostsCount || 0) < 50 };
|
||||||
},
|
},
|
||||||
|
|
||||||
html(attrs, state) {
|
html(attrs, state) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user