From 0d042d4a095bc92a85ee40ad758ca11355758d97 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Thu, 24 Oct 2019 13:20:53 +0700 Subject: [PATCH] resetting related on node load --- src/redux/node/sagas.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/redux/node/sagas.ts b/src/redux/node/sagas.ts index dcec5c9e..b3396de8 100644 --- a/src/redux/node/sagas.ts +++ b/src/redux/node/sagas.ts @@ -94,6 +94,7 @@ function* onNodeLoad({ id, node_type }: ReturnType) { 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 }));