From ec5a823ec031c3c1d3281681288ad35769fa2b1e Mon Sep 17 00:00:00 2001 From: f0c1s Date: Thu, 3 Nov 2022 12:11:05 +0530 Subject: [PATCH] fix: set current workspace id in redux store (#18053) On forking application ( a hush hush operation ), workspace was not set up to the current one. The current one will be the one where the application is being forked. --- app/client/src/sagas/ApplicationSagas.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/client/src/sagas/ApplicationSagas.tsx b/app/client/src/sagas/ApplicationSagas.tsx index 47435cba41..d3750ce760 100644 --- a/app/client/src/sagas/ApplicationSagas.tsx +++ b/app/client/src/sagas/ApplicationSagas.tsx @@ -613,6 +613,12 @@ export function* forkApplicationSaga( application, }, }); + yield put({ + type: ReduxActionTypes.SET_CURRENT_WORKSPACE_ID, + payload: { + id: action.payload.workspaceId, + }, + }); const pageURL = builderURL({ pageId: application.defaultPageId as string, });