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

disallow react table to autoreset
This commit is contained in:
Victor Marin
2023-05-05 13:57:57 +03:00
committed by GitHub
parent 5cb888650d
commit eb2eb65de8
2 changed files with 1 additions and 1 deletions

View File

@@ -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: {

View File

@@ -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}