mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
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:
parent
aface7d5db
commit
142d2efa11
1 changed files with 2 additions and 3 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Reference in a new issue