diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:48:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 16:56:05 +0200 |
commit | 54909304287f3c04dcfb39660be8ead57dc95440 (patch) | |
tree | 478f1b913f3bd4c3bbaa17525f0114c5b0a8689d /client/src/app/+my-library/my-videos/my-videos.component.ts | |
parent | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (diff) | |
download | PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.gz PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.tar.zst PeerTube-54909304287f3c04dcfb39660be8ead57dc95440.zip |
Remove suppressImplicitAnyIndexErrors
It's deprecated by TS
Diffstat (limited to 'client/src/app/+my-library/my-videos/my-videos.component.ts')
-rw-r--r-- | client/src/app/+my-library/my-videos/my-videos.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts index 46dd304ba..b618b3f88 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.ts +++ b/client/src/app/+my-library/my-videos/my-videos.component.ts | |||
@@ -171,15 +171,15 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { | |||
171 | .subscribe(result => { | 171 | .subscribe(result => { |
172 | this.videosContainedInPlaylists = Object.keys(result).reduce((acc, videoId) => ({ | 172 | this.videosContainedInPlaylists = Object.keys(result).reduce((acc, videoId) => ({ |
173 | ...acc, | 173 | ...acc, |
174 | [videoId]: uniqBy(result[videoId], (p: VideoExistInPlaylist) => p.playlistId) | 174 | [videoId]: uniqBy(result[+videoId], (p: VideoExistInPlaylist) => p.playlistId) |
175 | }), this.videosContainedInPlaylists) | 175 | }), this.videosContainedInPlaylists) |
176 | }) | 176 | }) |
177 | } | 177 | } |
178 | 178 | ||
179 | async deleteSelectedVideos () { | 179 | async deleteSelectedVideos () { |
180 | const toDeleteVideosIds = Object.keys(this.selection) | 180 | const toDeleteVideosIds = Object.entries(this.selection) |
181 | .filter(k => this.selection[k] === true) | 181 | .filter(([ _k, v ]) => v === true) |
182 | .map(k => parseInt(k, 10)) | 182 | .map(([ k, _v ]) => parseInt(k, 10)) |
183 | 183 | ||
184 | const res = await this.confirmService.confirm( | 184 | const res = await this.confirmService.confirm( |
185 | prepareIcu($localize`Do you really want to delete {length, plural, =1 {this video} other {{length} videos}}?`)( | 185 | prepareIcu($localize`Do you really want to delete {length, plural, =1 {this video} other {{length} videos}}?`)( |