1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Improvement: Add checks

This commit is contained in:
Akshay 2021-04-12 12:24:09 +02:00
parent 92a3e60137
commit 534a101eca

View File

@ -11,7 +11,11 @@ export default function MarkdownTemplate({ data }) {
{/* <HeaderSection title={post.frontmatter.title} />
{post.tableOfContents && <DocToc tableOfContents={post.tableOfContents} />}*/}
<Content>
<DocContent html={post.html} htmlAst={post.htmlAst} />
{post && post.html ? (
<DocContent html={post.html} htmlAst={post.htmlAst} />
) : (
<div>No content present</div>
)}
</Content>
</>
)