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
@@ -120,6 +120,7 @@ export const Table = memo((props: Props) => {
data: memoizedData, data: memoizedData,
disableResizing: !resizable, disableResizing: !resizable,
stateReducer: stateReducer, stateReducer: stateReducer,
autoResetPage: false,
initialState: getInitialState(initialSortBy, memoizedColumns), initialState: getInitialState(initialSortBy, memoizedColumns),
autoResetFilters: false, autoResetFilters: false,
sortTypes: { sortTypes: {
@@ -41,7 +41,6 @@ export function TablePanel(props: Props) {
const tableElement = ( const tableElement = (
<Table <Table
height={tableHeight} height={tableHeight}
// This calculation is to accommodate the optionally rendered Row Numbers Column
width={width} width={width}
data={main} data={main}
noHeader={!options.showHeader} noHeader={!options.showHeader}