diff --git a/app/javascript/gabsocial/components/trends_item.js b/app/javascript/gabsocial/components/trends_item.js index b1b09738..11c21f93 100644 --- a/app/javascript/gabsocial/components/trends_item.js +++ b/app/javascript/gabsocial/components/trends_item.js @@ -50,8 +50,8 @@ export default class TrendingItem extends ImmutablePureComponent { if (!trend) return null - const title = trend.get('title') - const description = trend.get('description') + const title = trend.get('title') || '' + const description = trend.get('description') || '' const correctedAuthor = trend.getIn(['author', 'name'], '').replace('www.', '') const correctedDescription = description.length >= 120 ? `${description.substring(0, 120).trim()}...` : description