aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-05-04 16:13:35 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-05-04 16:13:35 +0200
commit8d4197637868d5cde49434e937186b57e40f4b2b (patch)
treea507f2d256af2d9b9043cb46ff0330e2f54adeb2 /client/src
parent25a42e293be90d35afad2096e9db2fa3d617d855 (diff)
downloadPeerTube-8d4197637868d5cde49434e937186b57e40f4b2b.tar.gz
PeerTube-8d4197637868d5cde49434e937186b57e40f4b2b.tar.zst
PeerTube-8d4197637868d5cde49434e937186b57e40f4b2b.zip
Fix video-abuse-list init abuse duplication
Diffstat (limited to 'client/src')
-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)