Skip to content

Commit

Permalink
Changed the typing in one area to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankHassanabad committed Oct 7, 2021
1 parent 5d80c8d commit cf65c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const HeaderToolTipContent = React.memo<{ header: ColumnHeaderOptions }>(
{':'}
</ToolTipTableMetadata>
<ToolTipTableValue>
<IconType data-test-subj="type-icon" type={getIconFromType(String(header.type))} />
<IconType data-test-subj="type-icon" type={getIconFromType(header.type)} />
<span data-test-subj="type-value">{header.type}</span>
</ToolTipTableValue>
</P>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit cf65c58

Please sign in to comment.