diff --git a/app/client/src/ce/workers/Evaluation/evaluationUtils.ts b/app/client/src/ce/workers/Evaluation/evaluationUtils.ts index d80551057c..258ab304e3 100644 --- a/app/client/src/ce/workers/Evaluation/evaluationUtils.ts +++ b/app/client/src/ce/workers/Evaluation/evaluationUtils.ts @@ -394,6 +394,14 @@ export function isJSAction(entity: DataTreeEntity): entity is JSActionEntity { entity.ENTITY_TYPE === ENTITY_TYPE_VALUE.JSACTION ); } +/** + * + * isAnyJSAction checks if the entity is a JSAction ( or a JSModuleInstance on EE ) + */ +export function isAnyJSAction(entity: DataTreeEntity) { + return isJSAction(entity); +} + export function isJSActionConfig( entity: DataTreeEntityConfig, ): entity is JSActionEntityConfig { diff --git a/app/client/src/workers/common/DataTreeEvaluator/index.ts b/app/client/src/workers/common/DataTreeEvaluator/index.ts index 062dc112db..af664eaf4b 100644 --- a/app/client/src/workers/common/DataTreeEvaluator/index.ts +++ b/app/client/src/workers/common/DataTreeEvaluator/index.ts @@ -59,6 +59,7 @@ import { DataTreeDiffEvent, resetValidationErrorsForEntityProperty, isAPathDynamicBindingPath, + isAnyJSAction, } from "@appsmith/workers/Evaluation/evaluationUtils"; import { difference, @@ -1395,7 +1396,7 @@ export default class DataTreeEvaluator { const { errors: evalErrors, result } = this.evaluateDynamicBoundValue( toBeSentForEval, data, - !!entity && isJSAction(entity), + !!entity && isAnyJSAction(entity), contextData, callBackData, );