fix isso script
This commit is contained in:
parent
78b5489942
commit
01e0385b51
@ -22,13 +22,6 @@ const Comment = ({post_id}) => {
|
||||
}
|
||||
|
||||
const Layout = ({ data, children }) => {
|
||||
const [loadComment, setLoadComment] = useState(false);
|
||||
|
||||
const post = data.mdx.frontmatter;
|
||||
|
||||
useEffect(() => {
|
||||
setLoadComment(true)
|
||||
}, [])
|
||||
return (
|
||||
<Base>
|
||||
<div className="post template">
|
||||
@ -49,7 +42,7 @@ const Layout = ({ data, children }) => {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<Comment post_id={post.title}/>
|
||||
<Comment post_id={`${post.title}${Math.random()}`}/>
|
||||
</Base>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user