diff --git a/app/client/src/workers/common/DependencyMap/index.ts b/app/client/src/workers/common/DependencyMap/index.ts index 52f5bc8a46d8..36f010be6a23 100644 --- a/app/client/src/workers/common/DependencyMap/index.ts +++ b/app/client/src/workers/common/DependencyMap/index.ts @@ -3,7 +3,6 @@ import { getAllPaths, DataTreeDiffEvent, getEntityNameAndPropertyPath, - isDynamicLeaf, } from "ee/workers/Evaluation/evaluationUtils"; import type { WidgetEntity, @@ -148,6 +147,7 @@ export const updateDependencyMap = ({ const allAddedPaths = getAllPaths({ [fullPropertyPath]: get(unEvalDataTree, fullPropertyPath), }); + // If a new entity is added, add setter functions to all nodes if (entityName === fullPropertyPath) { const addedNodes = getEntitySetterFunctions( @@ -164,7 +164,7 @@ export const updateDependencyMap = ({ didUpdateDependencyMap; if (isWidgetActionOrJsObject(entity)) { - if (!isDynamicLeaf(unEvalDataTree, fullPropertyPath, configTree)) { + if (entityName === fullPropertyPath) { const entityDependencyMap = getEntityDependencies( entity, configTree[entityName],