Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
mastofe
Commits
1af76fae
Verified
Commit
1af76fae
authored
Jun 23, 2018
by
Haelwenn
Browse files
app/javascript/mastodon/components/hashtag.js: Do not crash when hashtag.history is undefined
parent
6b3614ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/javascript/flavours/glitch/components/hashtag.js
View file @
1af76fae
...
...
@@ -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
>
...
...
app/javascript/mastodon/components/hashtag.js
View file @
1af76fae
...
...
@@ -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
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment