diff --git a/client/src/components/Logs/Cells/ResponseCell.js b/client/src/components/Logs/Cells/ResponseCell.js index 026dbce1..3a3aeb60 100644 --- a/client/src/components/Logs/Cells/ResponseCell.js +++ b/client/src/components/Logs/Cells/ResponseCell.js @@ -51,18 +51,17 @@ const ResponseCell = ({ })}; }; - 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), }; diff --git a/client/src/components/Logs/Cells/index.js b/client/src/components/Logs/Cells/index.js index 8435a617..bc1fc2ed 100644 --- a/client/src/components/Logs/Cells/index.js +++ b/client/src/components/Logs/Cells/index.js @@ -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',