[v10.0.x] TablePanel: Do not allow auto-reset (#67907)

TablePanel: Do not allow auto-reset (#67477)

disallow react table to autoreset

(cherry picked from commit eb2eb65de8)

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2023-05-05 14:13:33 +03:00
committed by GitHub
co-authored by Victor Marin
parent 53b31fa719
commit 9a1e114009
2 changed files with 1 additions and 1 deletions
@@ -120,6 +120,7 @@ export const Table = memo((props: Props) => {
data: memoizedData,
disableResizing: !resizable,
stateReducer: stateReducer,
autoResetPage: false,
initialState: getInitialState(initialSortBy, memoizedColumns),
autoResetFilters: false,
sortTypes: {
@@ -41,7 +41,6 @@ export function TablePanel(props: Props) {
const tableElement = (
<Table
height={tableHeight}
// This calculation is to accommodate the optionally rendered Row Numbers Column
width={width}
data={main}
noHeader={!options.showHeader}