mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
resetting related on node load
This commit is contained in:
parent
e6c5deefd5
commit
0d042d4a09
1 changed files with 1 additions and 0 deletions
|
@ -94,6 +94,7 @@ function* onNodeLoad({ id, node_type }: ReturnType<typeof nodeLoadNode>) {
|
||||||
yield put(nodeSetLoadingComments(true));
|
yield put(nodeSetLoadingComments(true));
|
||||||
yield put(nodeSetSaveErrors({}));
|
yield put(nodeSetSaveErrors({}));
|
||||||
yield put(nodeSetCommentData(0, { ...EMPTY_COMMENT }));
|
yield put(nodeSetCommentData(0, { ...EMPTY_COMMENT }));
|
||||||
|
yield put(nodeSetRelated(null));
|
||||||
|
|
||||||
if (node_type) yield put(nodeSetCurrent({ ...EMPTY_NODE, type: node_type }));
|
if (node_type) yield put(nodeSetCurrent({ ...EMPTY_NODE, type: node_type }));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue