diff --git a/src/redux/node/sagas.ts b/src/redux/node/sagas.ts index 8ce5a8f5..aca5262f 100644 --- a/src/redux/node/sagas.ts +++ b/src/redux/node/sagas.ts @@ -197,7 +197,7 @@ function* onNodeLoad({ id, order = 'ASC' }: ReturnType) { return; } -function* onPostComment({ id, is_before }: ReturnType) { +function* onPostComment({ id }: ReturnType) { const { current, comment_data } = yield select(selectNode); yield put(nodeSetSendingComment(true)); @@ -218,12 +218,7 @@ function* onPostComment({ id, is_before }: ReturnType) { if (id === 0) { yield put(nodeSetCommentData(0, { ...EMPTY_COMMENT })); - - if (is_before) { - yield put(nodeSetComments([comment, ...comments])); - } else { - yield put(nodeSetComments([...comments, comment])); - } + yield put(nodeSetComments([comment, ...comments])); } else { yield put( nodeSet({