mirror of
https://github.com/grafana/grafana.git
synced 2026-08-26 21:37:31 -05:00
Table: Fix state bug with initialRowIndex (#90308)
* fix: fix state bug --------- Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
This commit is contained in:
@@ -81,6 +81,9 @@ export const RowsList = (props: RowsListProps) => {
|
||||
} = props;
|
||||
|
||||
const [rowHighlightIndex, setRowHighlightIndex] = useState<number | undefined>(initialRowIndex);
|
||||
if (initialRowIndex === undefined && rowHighlightIndex !== undefined) {
|
||||
setRowHighlightIndex(undefined);
|
||||
}
|
||||
|
||||
const theme = useTheme2();
|
||||
const panelContext = usePanelContext();
|
||||
|
||||
Reference in New Issue
Block a user