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/+admin/overview | |
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/+admin/overview')
-rw-r--r-- | client/src/app/+admin/overview/users/user-edit/user-edit.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
53 | this.serverService.getServerLocale() | 53 | this.serverService.getServerLocale() |
54 | .subscribe(translations => { | 54 | .subscribe(translations => { |
55 | if (authUser.role.id === UserRole.ADMINISTRATOR) { | 55 | if (authUser.role.id === UserRole.ADMINISTRATOR) { |
56 | this.roles = Object.keys(USER_ROLE_LABELS) | 56 | this.roles = Object.entries(USER_ROLE_LABELS) |
57 | .map(key => ({ value: key.toString(), label: peertubeTranslate(USER_ROLE_LABELS[key], translations) })) | 57 | .map(([ key, value ]) => ({ value: key.toString(), label: peertubeTranslate(value, translations) })) |
58 | return | 58 | return |
59 | } | 59 | } |
60 | 60 | ||