mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 04:55:33 +03:00
client: 2451 Remove empty rules label
Close #2451 * commit '67ad07d69ad3d8805c3d42f836b0759bc0b95a4e': client: 2451 Remove empty rules label
This commit is contained in:
commit
15d8f979b1
2 changed files with 7 additions and 7 deletions
|
@ -51,18 +51,17 @@ const ResponseCell = ({
|
|||
})}</div>;
|
||||
};
|
||||
|
||||
const rulesList = getRulesToFilterList(rules, filters, whitelistFilters);
|
||||
|
||||
const COMMON_CONTENT = {
|
||||
encryption_status: boldStatusLabel,
|
||||
install_settings_dns: upstream,
|
||||
elapsed: formattedElapsedMs,
|
||||
response_code: status,
|
||||
...(service_name
|
||||
? { service_name: getServiceName(service_name) }
|
||||
: { }
|
||||
&& { service_name: getServiceName(service_name) }
|
||||
),
|
||||
...(rules.length > 0
|
||||
&& { rule_label: getRulesToFilterList(rules, filters, whitelistFilters) }
|
||||
),
|
||||
rule_label: rulesList,
|
||||
response_table_header: renderResponses(response),
|
||||
original_response: renderResponses(originalResponse),
|
||||
};
|
||||
|
|
|
@ -169,8 +169,9 @@ const Row = memo(({
|
|||
response_details: 'title',
|
||||
install_settings_dns: upstream,
|
||||
elapsed: formattedElapsedMs,
|
||||
rule_label: rules.length > 0
|
||||
&& getRulesToFilterList(rules, filters, whitelistFilters),
|
||||
...(rules.length > 0
|
||||
&& { rule_label: getRulesToFilterList(rules, filters, whitelistFilters) }
|
||||
),
|
||||
response_table_header: response?.join('\n'),
|
||||
response_code: status,
|
||||
client_details: 'title',
|
||||
|
|
Loading…
Reference in a new issue