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

Improvment: Add null check

This commit is contained in:
Akshay 2021-06-15 11:05:35 +02:00
parent 806e2088bd
commit b2f9fcce3e

View File

@ -63,11 +63,15 @@ export default function MarkdownList({ location, pageContext }) {
const keys = Object.keys(nestedModules).sort()
const children = []
children.push(
<li key={title}>
<b>{title}</b>
</li>
)
if (title) {
children.push(
<li key={title}>
<b>{title}</b>
</li>
)
}
keys.forEach((element) => {
children.push(
<ul className={sidebarStyles.list}>