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

loading comments

This commit is contained in:
muerwre 2019-08-26 16:46:51 +07:00
parent 76a3331719
commit 398f44e232
5 changed files with 21 additions and 6 deletions

View file

@ -38,8 +38,8 @@ const NodeLayoutUnconnected: FC<IProps> = ({
}) => {
useEffect(() => {
if (is_loading) return;
nodeLoadNode(id, null);
}, []);
nodeLoadNode(parseInt(id, 10), null);
}, [nodeLoadNode, id]);
const block = node && node.type && NODE_COMPONENTS[node.type] && NODE_COMPONENTS[node.type];