aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
index f54e3dccd..39f619cc3 100644
--- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
+++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
@@ -303,7 +303,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit, AfterV
303 }).subscribe( 303 }).subscribe(
304 async resultList => { 304 async resultList => {
305 this.totalRecords = resultList.total 305 this.totalRecords = resultList.total
306 this.videoAbuses = [] 306 const videoAbuses = []
307 307
308 for (const abuse of resultList.data) { 308 for (const abuse of resultList.data) {
309 Object.assign(abuse, { 309 Object.assign(abuse, {
@@ -316,9 +316,10 @@ export class VideoAbuseListComponent extends RestTable implements OnInit, AfterV
316 if (abuse.video.channel?.ownerAccount) abuse.video.channel.ownerAccount = new Account(abuse.video.channel.ownerAccount) 316 if (abuse.video.channel?.ownerAccount) abuse.video.channel.ownerAccount = new Account(abuse.video.channel.ownerAccount)
317 if (abuse.updatedAt === abuse.createdAt) delete abuse.updatedAt 317 if (abuse.updatedAt === abuse.createdAt) delete abuse.updatedAt
318 318
319 this.videoAbuses.push(abuse as ProcessedVideoAbuse) 319 videoAbuses.push(abuse as ProcessedVideoAbuse)
320 } 320 }
321 321
322 this.videoAbuses = videoAbuses
322 }, 323 },
323 324
324 err => this.notifier.error(err.message) 325 err => this.notifier.error(err.message)