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

fixed slide block transitions

This commit is contained in:
Fedor Katurov 2019-11-07 15:43:39 +07:00
parent d06593b4cb
commit f837924ad4
3 changed files with 56 additions and 47 deletions

View file

@ -107,15 +107,17 @@ function* onNodeLoad({ id }: ReturnType<typeof nodeLoadNode>) {
data: { node, error },
} = yield call(reqWrapper, getNode, { id });
yield put(nodeSetLoading(false));
if (error) {
return yield put(nodeSetSaveErrors({ error }));
yield put(nodeSetSaveErrors({ error }));
yield put(nodeSetLoading(false));
return;
}
yield put(nodeSetSaveErrors({}));
yield put(nodeSetCurrent(node));
yield put(nodeSetLoading(false));
const {
comments: {
data: { comments },