mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-06-09 14:25:43 -04:00
used typed keyof index
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user