Skip to content
Snippets Groups Projects
Verified Commit d92b507a authored by Haelwenn's avatar Haelwenn
Browse files

app/javascript/mastodon/components/hashtag.js: Do not crash when hashtag.history is undefined

parent 93010e99
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment