[glitch-port]: Do not crash when hashtag.history is undefined
This commit is contained in:
parent
3d453238f4
commit
fc0fcd35f2
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ const Hashtag = ({ hashtag }) => (
|
|||
</div>
|
||||
|
||||
<div className='trends__item__sparkline'>
|
||||
<Sparklines width={50} height={28} data={hashtag.get('history').reverse().map(day => day.get('uses')).toArray()}>
|
||||
<Sparklines width={50} height={28} data={hashtag.get('history') && hashtag.get('history').reverse().map(day => day.get('uses')).toArray()}>
|
||||
<SparklinesCurve style={{ fill: 'none' }} />
|
||||
</Sparklines>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue