From 70a1794e86343518b1da4273a251701d2f5e619b Mon Sep 17 00:00:00 2001 From: Satbir Singh Date: Tue, 7 Apr 2020 11:17:20 +0530 Subject: [PATCH] After copying api switches to the new one. --- app/client/src/sagas/ApiPaneSagas.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/client/src/sagas/ApiPaneSagas.ts b/app/client/src/sagas/ApiPaneSagas.ts index 6e8b1c5f38..ec83aae665 100644 --- a/app/client/src/sagas/ApiPaneSagas.ts +++ b/app/client/src/sagas/ApiPaneSagas.ts @@ -250,6 +250,8 @@ function* handleMoveOrCopySaga(actionPayload: ReduxAction<{ id: string }>) { ); if (values.id === id) { yield put(initialize(API_EDITOR_FORM_NAME, action)); + } else { + yield put(changeApi(id)); } }