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
Joseph Nuthalapati
pleroma-fe
Commits
53c9517a
Commit
53c9517a
authored
Jul 24, 2019
by
Tae Hoon
Browse files
use array.includes instead of array.indexOf
parent
0f8ace48
Changes
1
Show whitespace changes
Inline
Side-by-side
src/components/timeline/timeline.js
View file @
53c9517a
...
...
@@ -46,7 +46,7 @@ const Timeline = {
const
result
=
{}
if
(
this
.
pinnedStatusIds
&&
this
.
pinnedStatusIds
.
length
>
0
)
{
for
(
let
status
of
this
.
timeline
.
visibleStatuses
)
{
if
(
this
.
pinnedStatusIds
.
in
dexOf
(
status
.
id
)
===
-
1
)
{
if
(
!
this
.
pinnedStatusIds
.
in
cludes
(
status
.
id
))
{
break
}
result
[
status
.
id
]
=
true
...
...
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