fix isso script

This commit is contained in:
nc 2023-02-17 14:39:48 +07:00
parent 78b5489942
commit 01e0385b51

View File

@ -22,13 +22,6 @@ const Comment = ({post_id}) => {
} }
const Layout = ({ data, children }) => { const Layout = ({ data, children }) => {
const [loadComment, setLoadComment] = useState(false);
const post = data.mdx.frontmatter;
useEffect(() => {
setLoadComment(true)
}, [])
return ( return (
<Base> <Base>
<div className="post template"> <div className="post template">
@ -49,7 +42,7 @@ const Layout = ({ data, children }) => {
</div> </div>
</div> </div>
</div> </div>
<Comment post_id={post.title}/> <Comment post_id={`${post.title}${Math.random()}`}/>
</Base> </Base>
) )
} }