diff --git a/src/components/node/NodeImageBlock/index.tsx b/src/components/node/NodeImageBlock/index.tsx index 5ee0405f..32ed8d16 100644 --- a/src/components/node/NodeImageBlock/index.tsx +++ b/src/components/node/NodeImageBlock/index.tsx @@ -39,8 +39,6 @@ const NodeImageBlock: FC = ({ node, is_loading }) => { ]); useEffect(() => { - console.log({ height }); - if (!refs || !refs.current[current] || !loaded[current]) return setHeight(320); const el = refs.current[current]; diff --git a/src/containers/node/NodeLayout/index.tsx b/src/containers/node/NodeLayout/index.tsx index 699901d5..0778db2f 100644 --- a/src/containers/node/NodeLayout/index.tsx +++ b/src/containers/node/NodeLayout/index.tsx @@ -36,14 +36,9 @@ const NodeLayoutUnconnected: FC = ({ useEffect(() => { if (is_loading) return; nodeLoadNode(id, null); - // todo: if node not loading, load it! }, []); - useEffect(() => console.log({ is_loading }), [is_loading]); - const block = node && node.type && NODE_COMPONENTS[node.type] && NODE_COMPONENTS[node.type]; - // const view = block && block[is_loading ? 'placeholder' : 'component']; - // console.log({ block, view }); return (