diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/execution_log_table/execution_log_columns.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/execution_log_table/execution_log_columns.tsx index 9cc6fbce19f86a..f67f538513b732 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/execution_log_table/execution_log_columns.tsx +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/execution_log_table/execution_log_columns.tsx @@ -109,7 +109,7 @@ export const EXECUTION_LOG_COLUMNS: Array ({ +export const getMessageColumn = (width: string) => ({ field: 'security_message', name: ( ({ width, }); -export const GET_EXECUTION_LOG_METRICS_COLUMNS = ( +export const getExecutionLogMetricsColumns = ( docLinks: DocLinksStart ): Array> => [ { diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/execution_log_table/execution_log_table.tsx b/x-pack/plugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/execution_log_table/execution_log_table.tsx index 53348cead7ea21..0c65399792dfdd 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/execution_log_table/execution_log_table.tsx +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/execution_log_table/execution_log_table.tsx @@ -66,8 +66,8 @@ import { TextBlock } from '../../../../rule_monitoring/components/basic/text/tex import * as i18n from './translations'; import { EXECUTION_LOG_COLUMNS, - GET_MESSAGE_COLUMN, - GET_EXECUTION_LOG_METRICS_COLUMNS, + getMessageColumn, + getExecutionLogMetricsColumns, expanderColumn, } from './execution_log_columns'; import { ExecutionLogSearchBar } from './execution_log_search_bar'; @@ -422,9 +422,9 @@ const ExecutionLogTableComponent: React.FC = ({ const columns = [...EXECUTION_LOG_COLUMNS]; if (showMetricColumns) { - columns.push(GET_MESSAGE_COLUMN('20%'), ...GET_EXECUTION_LOG_METRICS_COLUMNS(docLinks)); + columns.push(getMessageColumn('20%'), ...getExecutionLogMetricsColumns(docLinks)); } else { - columns.push(GET_MESSAGE_COLUMN('50%')); + columns.push(getMessageColumn('50%')); } columns.push(