diff --git a/packages/grafana-ui/src/components/Table/RowsList.tsx b/packages/grafana-ui/src/components/Table/RowsList.tsx index c5bb9ae817a..9ee3ca8baf3 100644 --- a/packages/grafana-ui/src/components/Table/RowsList.tsx +++ b/packages/grafana-ui/src/components/Table/RowsList.tsx @@ -81,6 +81,9 @@ export const RowsList = (props: RowsListProps) => { } = props; const [rowHighlightIndex, setRowHighlightIndex] = useState(initialRowIndex); + if (initialRowIndex === undefined && rowHighlightIndex !== undefined) { + setRowHighlightIndex(undefined); + } const theme = useTheme2(); const panelContext = usePanelContext();