From cf65c58b10f93a3b97f34576087c7fd0a54f5b8f Mon Sep 17 00:00:00 2001 From: FrankHassanabad Date: Thu, 7 Oct 2021 17:37:20 -0600 Subject: [PATCH] Changed the typing in one area to be consistent --- .../t_grid/body/column_headers/header_tooltip_content/index.tsx | 2 +- x-pack/plugins/timelines/public/components/utils/helpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/header_tooltip_content/index.tsx b/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/header_tooltip_content/index.tsx index e8a458d9759824..91dd64d8fed3a2 100644 --- a/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/header_tooltip_content/index.tsx +++ b/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/header_tooltip_content/index.tsx @@ -61,7 +61,7 @@ export const HeaderToolTipContent = React.memo<{ header: ColumnHeaderOptions }>( {':'} - + {header.type}

diff --git a/x-pack/plugins/timelines/public/components/utils/helpers.ts b/x-pack/plugins/timelines/public/components/utils/helpers.ts index f02c86aecc108e..23f92c119d5744 100644 --- a/x-pack/plugins/timelines/public/components/utils/helpers.ts +++ b/x-pack/plugins/timelines/public/components/utils/helpers.ts @@ -53,7 +53,7 @@ export const getColumnsWithTimestamp = ({ : []; }; -export const getIconFromType = (type: string | null) => { +export const getIconFromType = (type: string | null | undefined) => { switch (type) { case 'string': // fall through case 'keyword':