From 54909304287f3c04dcfb39660be8ead57dc95440 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 May 2023 16:48:54 +0200 Subject: Remove suppressImplicitAnyIndexErrors It's deprecated by TS --- client/src/app/+videos/video-list/overview/overview.service.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'client/src/app/+videos/video-list/overview/overview.service.ts') diff --git a/client/src/app/+videos/video-list/overview/overview.service.ts b/client/src/app/+videos/video-list/overview/overview.service.ts index 12d2aa1cb..4a7d9c7c5 100644 --- a/client/src/app/+videos/video-list/overview/overview.service.ts +++ b/client/src/app/+videos/video-list/overview/overview.service.ts @@ -5,6 +5,7 @@ import { Injectable } from '@angular/core' import { RestExtractor, ServerService } from '@app/core' import { immutableAssign } from '@app/helpers' import { VideoService } from '@app/shared/shared-main' +import { objectKeysTyped } from '@shared/core-utils' import { peertubeTranslate } from '@shared/core-utils/i18n' import { VideosOverview as VideosOverviewServer } from '@shared/models' import { environment } from '../../../../environments/environment' @@ -42,7 +43,7 @@ export class OverviewService { } // Build videos objects - for (const key of Object.keys(serverVideosOverview)) { + for (const key of objectKeysTyped(serverVideosOverview)) { for (const object of serverVideosOverview[key]) { observables.push( of(object.videos) @@ -50,7 +51,9 @@ export class OverviewService { switchMap(videos => this.videosService.extractVideos({ total: 0, data: videos })), map(result => result.data), tap(videos => { - videosOverviewResult[key].push(immutableAssign(object, { videos })) + // FIXME: typings & lint + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion + videosOverviewResult[key].push(immutableAssign(object, { videos }) as any) }) ) ) -- cgit v1.2.3