mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
cleanup
This commit is contained in:
parent
c0e991720f
commit
6898d82cac
1 changed files with 0 additions and 29 deletions
|
|
@ -1471,35 +1471,6 @@ export const cloneComponents = (
|
|||
});
|
||||
};
|
||||
|
||||
// const getAllChildComponents = (allComponents, parentId) => {
|
||||
// const childComponents = [];
|
||||
|
||||
// Object.keys(allComponents).forEach((componentId) => {
|
||||
// const componentParentId = allComponents[componentId].component?.parent;
|
||||
|
||||
// const isParentTabORCalendar =
|
||||
// allComponents[parentId]?.component?.component === 'Tabs' ||
|
||||
// allComponents[parentId]?.component?.component === 'Calendar';
|
||||
|
||||
// if (componentParentId && isParentTabORCalendar) {
|
||||
// const childComponent = allComponents[componentId];
|
||||
// const childTabId = componentParentId.split('-').at(-1);
|
||||
// if (componentParentId === `${parentId}-${childTabId}`) {
|
||||
// childComponent.componentId = componentId;
|
||||
// childComponents.push(childComponent);
|
||||
// }
|
||||
// }
|
||||
|
||||
// if (componentParentId === parentId) {
|
||||
// const childComponent = allComponents[componentId];
|
||||
// childComponent.componentId = componentId;
|
||||
// childComponents.push(childComponent);
|
||||
// }
|
||||
// });
|
||||
|
||||
// return childComponents;
|
||||
// };
|
||||
|
||||
const getAllChildComponents = (allComponents, parentId) => {
|
||||
const childComponents = [];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue