Enhancement :: setting currentData exposed variable as total data coming to table (#4629)

* setting current data as the original data coming to table

* typo
This commit is contained in:
Kiran Ashok 2022-11-03 17:17:34 +05:30 committed by GitHub
parent aface7d5db
commit 142d2efa11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -472,14 +472,13 @@ export function Table({
useEffect(() => {
const pageData = page.map((row) => row.original);
const currentData = rows.map((row) => row.original);
onComponentOptionsChanged(component, [
['currentPageData', pageData],
['currentData', currentData],
['currentData', data],
['selectedRow', []],
['selectedRowId', null],
]);
}, [tableData.length, tableDetails.changeSet, page]);
}, [tableData.length, tableDetails.changeSet, page, data]);
useEffect(() => {
const newColumnSizes = { ...columnSizes, ...state.columnResizing.columnWidths };