mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06: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}`,
|
||||
|
||||
defaultState(attrs) {
|
||||
return { collapsed: attrs.topicPostsCount < 50 };
|
||||
return { collapsed: (attrs.topicPostsCount || 0) < 50 };
|
||||
},
|
||||
|
||||
html(attrs, state) {
|
||||
|
Loading…
Reference in New Issue
Block a user