use array.includes instead of array.indexOf

このコミットが含まれているのは:
taehoon 2019-07-24 22:42:06 -04:00
コミット 53c9517a4a
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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