diff --git a/app/client/src/ce/sagas/helpers.ts b/app/client/src/ce/sagas/helpers.ts index 96fe047b7d..ad8e1b0683 100644 --- a/app/client/src/ce/sagas/helpers.ts +++ b/app/client/src/ce/sagas/helpers.ts @@ -3,6 +3,7 @@ import { CreateNewActionKey } from "@appsmith/entities/Engine/actionHelpers"; import type { DeleteErrorLogPayload } from "actions/debuggerActions"; import type { Action } from "entities/Action"; import type { Log } from "entities/AppsmithConsole"; +import type { EvaluationError } from "utils/DynamicBindingUtils"; export interface ResolveParentEntityMetadataReturnType { parentEntityId?: string; @@ -30,3 +31,7 @@ export function* transformAddErrorLogsSaga(logs: Log[]) { export function* transformDeleteErrorLogsSaga(payload: DeleteErrorLogPayload) { return payload; } + +export function* transformTriggerEvalErrors(errors: EvaluationError[]) { + return errors; +} diff --git a/app/client/src/sagas/EvaluationsSaga.ts b/app/client/src/sagas/EvaluationsSaga.ts index 302ec13d8a..7bd113a852 100644 --- a/app/client/src/sagas/EvaluationsSaga.ts +++ b/app/client/src/sagas/EvaluationsSaga.ts @@ -113,6 +113,7 @@ import { getIsCurrentEditorWorkflowType } from "@appsmith/selectors/workflowSele import { evalErrorHandler } from "./EvalErrorHandler"; import AnalyticsUtil from "@appsmith/utils/AnalyticsUtil"; import { endSpan, startRootSpan } from "UITelemetry/generateTraces"; +import { transformTriggerEvalErrors } from "@appsmith/sagas/helpers"; const APPSMITH_CONFIGS = getAppsmithConfigs(); export const evalWorker = new GracefulWorkerService( @@ -351,10 +352,16 @@ export function* evaluateAndExecuteDynamicTrigger( }, ); const { errors = [] } = response as any; - yield call(dynamicTriggerErrorHandler, errors); + + const transformedErrors: EvaluationError[] = yield call( + transformTriggerEvalErrors, + errors, + ); + + yield call(dynamicTriggerErrorHandler, transformedErrors); yield fork(logDynamicTriggerExecution, { dynamicTrigger, - errors, + errors: transformedErrors, triggerMeta, }); return response;