use array.includes instead of array.indexOf

This commit is contained in:
taehoon 2019-07-24 22:42:06 -04:00
parent 0f8ace4836
commit 53c9517a4a

View file

@ -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.indexOf(status.id) === -1) {
if (!this.pinnedStatusIds.includes(status.id)) {
break
}
result[status.id] = true