From d3447d29958d6c1ea3506917c03a34e30bcc162a Mon Sep 17 00:00:00 2001 From: Davis Plumlee Date: Wed, 5 Jan 2022 13:10:14 -0500 Subject: [PATCH] updates type: --- .../detections/components/rules/rule_preview/preview_logs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/rule_preview/preview_logs.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/rule_preview/preview_logs.tsx index 938ab37aa185e..ecb2851c1a4ba 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/rule_preview/preview_logs.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/rule_preview/preview_logs.tsx @@ -25,7 +25,7 @@ interface LogAccordionProps { isError?: boolean; } -const addLogs = (startedAt: string, logs: string[], allLogs: SortedLogs[]) => +const addLogs = (startedAt: string | undefined, logs: string[], allLogs: SortedLogs[]) => logs.length ? [{ startedAt, logs }, ...allLogs] : allLogs; export const PreviewLogsComponent: React.FC = ({