}).subscribe(
async resultList => {
this.totalRecords = resultList.total
- this.videoAbuses = []
+ const videoAbuses = []
for (const abuse of resultList.data) {
Object.assign(abuse, {
if (abuse.video.channel?.ownerAccount) abuse.video.channel.ownerAccount = new Account(abuse.video.channel.ownerAccount)
if (abuse.updatedAt === abuse.createdAt) delete abuse.updatedAt
- this.videoAbuses.push(abuse as ProcessedVideoAbuse)
+ videoAbuses.push(abuse as ProcessedVideoAbuse)
}
+ this.videoAbuses = videoAbuses
},
err => this.notifier.error(err.message)