mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
loading comments
This commit is contained in:
parent
76a3331719
commit
398f44e232
5 changed files with 21 additions and 6 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue