Fix
This commit is contained in:
parent
8e349c368c
commit
4c3be2b894
@ -50,8 +50,8 @@ export default class TrendingItem extends ImmutablePureComponent {
|
|||||||
|
|
||||||
if (!trend) return null
|
if (!trend) return null
|
||||||
|
|
||||||
const title = trend.get('title')
|
const title = trend.get('title') || ''
|
||||||
const description = trend.get('description')
|
const description = trend.get('description') || ''
|
||||||
|
|
||||||
const correctedAuthor = trend.getIn(['author', 'name'], '').replace('www.', '')
|
const correctedAuthor = trend.getIn(['author', 'name'], '').replace('www.', '')
|
||||||
const correctedDescription = description.length >= 120 ? `${description.substring(0, 120).trim()}...` : description
|
const correctedDescription = description.length >= 120 ? `${description.substring(0, 120).trim()}...` : description
|
||||||
|
Loading…
x
Reference in New Issue
Block a user