mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fix : Page change doesn't happen for table with CSA in viewer (#10457)
This commit is contained in:
parent
f014a52d99
commit
cb1c5c6034
1 changed files with 3 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ export function setCurrentStateAsync(_ref, changes) {
|
|||
});
|
||||
}
|
||||
|
||||
const debouncedChange = _.debounce(() => {
|
||||
const debouncedChange = _.debounce((duplicateCurrentState) => {
|
||||
const newComponentsState = {};
|
||||
for (const [key, value] of Object.entries(getCurrentState().components)) {
|
||||
if (duplicateCurrentState[key]) {
|
||||
|
|
@ -177,7 +177,7 @@ export function onComponentOptionsChanged(component, options, id) {
|
|||
|
||||
duplicateCurrentState = { ...components, [componentName]: componentData };
|
||||
|
||||
debouncedChange();
|
||||
debouncedChange(duplicateCurrentState);
|
||||
}
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
|
@ -246,7 +246,7 @@ export function onComponentOptionChanged(component, option_name, value, id) {
|
|||
} else {
|
||||
// Update the duplicate state if editor is not ready
|
||||
duplicateCurrentState = { ...components, [componentName]: componentData };
|
||||
debouncedChange();
|
||||
debouncedChange(duplicateCurrentState);
|
||||
}
|
||||
|
||||
return Promise.resolve();
|
||||
|
|
|
|||
Loading…
Reference in a new issue