1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

clearing comment form on node load

This commit is contained in:
Fedor Katurov 2019-12-03 16:14:13 +07:00
parent ba6b0bfe98
commit 47c64fee4f

View file

@ -141,9 +141,14 @@ function* onNodeLoad({ id, order = 'ASC' }: ReturnType<typeof nodeLoadNode>) {
related: call(reqWrapper, getNodeRelated, { id }),
});
yield put(nodeSetComments(comments || []));
yield put(nodeSetRelated(related || []));
yield put(nodeSetLoadingComments(false));
yield put(
nodeSet({
comments,
related,
is_loading_comments: false,
comment_data: { 0: { ...EMPTY_COMMENT } },
})
);
const { updated } = yield select(selectFlow);