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.
This commit is contained in:
f0c1s 2022-11-03 12:11:05 +05:30 committed by GitHub
parent 814559e6b5
commit ec5a823ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});