mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
parent
a360fdda74
commit
b175004ad1
1 changed files with 11 additions and 0 deletions
|
|
@ -533,6 +533,7 @@ export function Table({
|
|||
previousPage,
|
||||
setPageSize,
|
||||
state,
|
||||
rows,
|
||||
prepareRow,
|
||||
setAllFilters,
|
||||
preGlobalFilteredRows,
|
||||
|
|
@ -558,6 +559,16 @@ export function Table({
|
|||
useExportData
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
const pageData = page.map(row => row.original);
|
||||
const currentData = rows.map(row => row.original);;
|
||||
onComponentOptionsChanged(component, [
|
||||
['currentPageData', pageData],
|
||||
['currentData', currentData]
|
||||
]);
|
||||
}, [tableData.length, componentState.changeSet]);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (!state.columnResizing.isResizingColumn) {
|
||||
changeCanDrag(true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue