From 6898d82cac3f445dcdf3656f93c8bcf560d71046 Mon Sep 17 00:00:00 2001 From: arpitnath Date: Fri, 27 Oct 2023 03:26:29 +0530 Subject: [PATCH] cleanup --- frontend/src/_helpers/appUtils.js | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index 3c58d31775..f3b68dc965 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -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 = [];