diff --git a/superset-frontend/src/explore/components/ExploreViewContainer/index.tsx b/superset-frontend/src/explore/components/ExploreViewContainer/index.tsx index 64df98b2b7b..84e3581215d 100644 --- a/superset-frontend/src/explore/components/ExploreViewContainer/index.tsx +++ b/superset-frontend/src/explore/components/ExploreViewContainer/index.tsx @@ -608,7 +608,14 @@ function ExploreViewContainer(props: ExploreViewContainerProps) { if (tooltipContents.length > 0) { const getFieldName = ( - item: string | { item_type?: string; column_name?: string; metric_name?: string; label?: string }, + item: + | string + | { + item_type?: string; + column_name?: string; + metric_name?: string; + label?: string; + }, ): string | null => { if (typeof item === 'string') return item; if (item?.item_type === 'column') return item.column_name ?? null;