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

fixed node cover reset

This commit is contained in:
Fedor Katurov 2021-03-22 17:25:56 +07:00
parent 10729de375
commit 0c07fb5a45
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ export const useNodeCoverImage = (node: INode) => {
dispatch(nodeSetCoverImage(node.cover));
return () => {
nodeSetCoverImage(undefined);
dispatch(nodeSetCoverImage(undefined));
};
}, [dispatch, node.cover, node.id]);
};