Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/client/src/workers/common/DependencyMap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
getAllPaths,
DataTreeDiffEvent,
getEntityNameAndPropertyPath,
isDynamicLeaf,
} from "ee/workers/Evaluation/evaluationUtils";
import type {
WidgetEntity,
Expand Down Expand Up @@ -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(
Expand All @@ -164,7 +164,7 @@ export const updateDependencyMap = ({
didUpdateDependencyMap;

if (isWidgetActionOrJsObject(entity)) {
if (!isDynamicLeaf(unEvalDataTree, fullPropertyPath, configTree)) {
if (entityName === fullPropertyPath) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the failures and also kindly add/update unit test related to this file.

const entityDependencyMap = getEntityDependencies(
entity,
configTree[entityName],
Expand Down