From 4d7db9e70c71bdf074ade427921a4c2e88971cd1 Mon Sep 17 00:00:00 2001 From: Rudraprasad Das Date: Mon, 26 Aug 2024 16:30:00 +0800 Subject: [PATCH] chore: Revert "fix: Add mode property to forkApplicationSaga" (#35873) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description Reverts https://github.com/appsmithorg/appsmith/pull/35841 ## Automation /ok-to-test tags="@tag.All" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: f01f27d5b79a3b99b619e39816d6660e8dbc2ba7 > Cypress dashboard. > Tags: `@tag.All` > Spec: >
Mon, 26 Aug 2024 08:05:27 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No --- app/client/src/ce/sagas/ApplicationSagas.tsx | 1 - app/client/src/reducers/entityReducers/pageListReducer.tsx | 2 -- 2 files changed, 3 deletions(-) diff --git a/app/client/src/ce/sagas/ApplicationSagas.tsx b/app/client/src/ce/sagas/ApplicationSagas.tsx index e4073a4247..e529199407 100644 --- a/app/client/src/ce/sagas/ApplicationSagas.tsx +++ b/app/client/src/ce/sagas/ApplicationSagas.tsx @@ -688,7 +688,6 @@ export function* forkApplicationSaga( payload: { applicationId: application.id, pageId: defaultPage?.id, - mode: APP_MODE.EDIT, }, }); } diff --git a/app/client/src/reducers/entityReducers/pageListReducer.tsx b/app/client/src/reducers/entityReducers/pageListReducer.tsx index af5111ef9e..f9cdd60eac 100644 --- a/app/client/src/reducers/entityReducers/pageListReducer.tsx +++ b/app/client/src/reducers/entityReducers/pageListReducer.tsx @@ -61,8 +61,6 @@ export const pageListReducer = createReducer(initialState, { ...action.payload, defaultPageId: defaultPage?.pageId, defaultBasePageId: defaultPage?.basePageId, - currentBasePageId: defaultPage?.basePageId, - currentPageId: defaultPage?.basePageId, }; }, [ReduxActionTypes.UPDATE_PAGE_LIST]: (