mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
add changes for table
This commit is contained in:
parent
eee6cc8b55
commit
56d0ae908a
1 changed files with 9 additions and 1 deletions
|
|
@ -1192,8 +1192,16 @@ export const createComponentsSlice = (set, get) => ({
|
|||
'setComponentProperty'
|
||||
);
|
||||
|
||||
const oldComponent = get().modules[moduleId].pages[currentPageIndex].components[componentId].component;
|
||||
const { events, exposedVariables, ...filteredDefinition } = oldComponent.definition || {};
|
||||
|
||||
const diff = {
|
||||
[componentId]: { component: get().modules[moduleId].pages[currentPageIndex].components[componentId].component },
|
||||
[componentId]: {
|
||||
component: {
|
||||
...oldComponent,
|
||||
definition: filteredDefinition,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
if (saveAfterAction) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue