used typed keyof index

This commit is contained in:
Flaminel
2026-06-03 21:17:44 +03:00
parent 25156b72ae
commit bc9ce30505

View File

@@ -180,7 +180,7 @@ export class MalwareBlockerComponent implements OnInit, HasPendingChanges {
const blocklists: Record<string, any> = {};
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,