use array.includes instead of array.indexOf
このコミットが含まれているのは:
コミット
53c9517a4a
|
@ -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
|
||||
|
|
読み込み中…
新しいイシューから参照