mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
clearing comment form on node load
This commit is contained in:
parent
ba6b0bfe98
commit
47c64fee4f
1 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue