mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Filtered empty user rules
This commit is contained in:
parent
1a6cbc71c3
commit
6655b12cdf
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class FilteringData {
|
|||
factory FilteringData.fromJson(Map<String, dynamic> json) => FilteringData(
|
||||
filters: json["filters"] != null ? List<Filter>.from(json["filters"].map((x) => Filter.fromJson(x))) : [],
|
||||
whitelistFilters: json["whitelist_filters"] != null ? List<Filter>.from(json["whitelist_filters"].map((x) => Filter.fromJson(x))) : [],
|
||||
userRules: json["user_rules"] != null ? List<String>.from(json["user_rules"].map((x) => x)) : [],
|
||||
userRules: json["user_rules"] != null ? List<String>.from(json["user_rules"].map((x) => x)).where((i) => i != '').toList() : [],
|
||||
interval: json["interval"],
|
||||
enabled: json["enabled"],
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue