From cc0954291b48d6c3ae10fd82247eef3cfaf604b0 Mon Sep 17 00:00:00 2001 From: Ashit Rath Date: Tue, 21 Jan 2025 12:07:21 +0530 Subject: [PATCH] chore: Add mode in fetch environment action --- app/client/src/ce/actions/environmentAction.ts | 6 +++++- app/client/src/ce/sagas/ApplicationSagas.tsx | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/client/src/ce/actions/environmentAction.ts b/app/client/src/ce/actions/environmentAction.ts index cf28077c36d7..a509c445cd0b 100644 --- a/app/client/src/ce/actions/environmentAction.ts +++ b/app/client/src/ce/actions/environmentAction.ts @@ -1,3 +1,5 @@ +import type { APP_MODE } from "entities/App"; + // Redux action to show the environment info modal before deploy export const showEnvironmentDeployInfoModal = () => ({}); @@ -11,12 +13,14 @@ export const setCurrentEditingEnvironmentID = (currentEditingId: string) => ({ export const fetchingEnvironmentConfigs = ({ editorId, fetchDatasourceMeta = false, + mode, workspaceId, }: { editorId: string; fetchDatasourceMeta: boolean; workspaceId: string; + mode?: APP_MODE; }) => ({ type: "", - payload: { workspaceId, editorId, fetchDatasourceMeta }, + payload: { workspaceId, editorId, fetchDatasourceMeta, mode }, }); diff --git a/app/client/src/ce/sagas/ApplicationSagas.tsx b/app/client/src/ce/sagas/ApplicationSagas.tsx index 463c80b0f34b..3eea5281824f 100644 --- a/app/client/src/ce/sagas/ApplicationSagas.tsx +++ b/app/client/src/ce/sagas/ApplicationSagas.tsx @@ -293,6 +293,7 @@ export function* fetchAppAndPagesSaga( payload: { workspaceId: response.data.workspaceId, editorId: response.data.application?.id, + mode: request.mode, }, });