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/+admin/overview/users/user-edit/user-edit.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/+admin/overview/users') diff --git a/client/src/app/+admin/overview/users/user-edit/user-edit.ts b/client/src/app/+admin/overview/users/user-edit/user-edit.ts index 5d6c6a91e..9547da2d1 100644 --- a/client/src/app/+admin/overview/users/user-edit/user-edit.ts +++ b/client/src/app/+admin/overview/users/user-edit/user-edit.ts @@ -53,8 +53,8 @@ export abstract class UserEdit extends FormReactive implements OnInit { this.serverService.getServerLocale() .subscribe(translations => { if (authUser.role.id === UserRole.ADMINISTRATOR) { - this.roles = Object.keys(USER_ROLE_LABELS) - .map(key => ({ value: key.toString(), label: peertubeTranslate(USER_ROLE_LABELS[key], translations) })) + this.roles = Object.entries(USER_ROLE_LABELS) + .map(([ key, value ]) => ({ value: key.toString(), label: peertubeTranslate(value, translations) })) return } -- cgit v1.2.3