diff --git a/app/client/src/ce/actions/environmentAction.ts b/app/client/src/ce/actions/environmentAction.ts index cf28077c36..a509c445cd 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 463c80b0f3..3eea528182 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, }, });