From bc9ce3050585c2578edcf24c0cdcc7ef280ed141 Mon Sep 17 00:00:00 2001 From: Flaminel Date: Wed, 3 Jun 2026 21:17:44 +0300 Subject: [PATCH] used typed keyof index --- .../settings/malware-blocker/malware-blocker.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/frontend/src/app/features/settings/malware-blocker/malware-blocker.component.ts b/code/frontend/src/app/features/settings/malware-blocker/malware-blocker.component.ts index 62efc237..a73fc1d4 100644 --- a/code/frontend/src/app/features/settings/malware-blocker/malware-blocker.component.ts +++ b/code/frontend/src/app/features/settings/malware-blocker/malware-blocker.component.ts @@ -180,7 +180,7 @@ export class MalwareBlockerComponent implements OnInit, HasPendingChanges { const blocklists: Record = {}; for (const name of ARR_NAMES) { - const bl = (config as any)[name]; + const bl = config[name as keyof MalwareBlockerConfig] as BlocklistSettings; blocklists[name] = { enabled: bl.enabled, blocklistPath: bl.blocklistPath,