diff --git a/app/client/src/sagas/CommentSagas/index.ts b/app/client/src/sagas/CommentSagas/index.ts index b732de7206..49d676869e 100644 --- a/app/client/src/sagas/CommentSagas/index.ts +++ b/app/client/src/sagas/CommentSagas/index.ts @@ -59,7 +59,6 @@ function* createUnpublishedCommentThread( function* createCommentThread(action: ReduxAction) { try { - yield put(removeUnpublishedCommentThreads()); const newCommentThreadPayload = transformUnpublishCommentThreadToCreateNew( action.payload, ); @@ -77,6 +76,7 @@ function* createCommentThread(action: ReduxAction) { if (isValidResponse) { yield put(createCommentThreadSuccess(response.data)); yield put(setVisibleThread(response.data.id)); + yield put(removeUnpublishedCommentThreads()); } } catch (error) { yield put({