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

resetting related on node load

This commit is contained in:
Fedor Katurov 2019-10-24 13:20:53 +07:00
parent e6c5deefd5
commit 0d042d4a09

View file

@ -94,6 +94,7 @@ function* onNodeLoad({ id, node_type }: ReturnType<typeof nodeLoadNode>) {
yield put(nodeSetLoadingComments(true));
yield put(nodeSetSaveErrors({}));
yield put(nodeSetCommentData(0, { ...EMPTY_COMMENT }));
yield put(nodeSetRelated(null));
if (node_type) yield put(nodeSetCurrent({ ...EMPTY_NODE, type: node_type }));