mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Broken test
This commit is contained in:
parent
2747e14b4c
commit
566b0bbb75
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue