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