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,