FIX: Broken test

This commit is contained in:
Robin Ward 2016-03-09 13:25:52 -05:00
parent 2747e14b4c
commit 566b0bbb75

View File

@ -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) {