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:
parent
806e2088bd
commit
b2f9fcce3e
@ -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}>
|
||||
|
Loading…
Reference in New Issue
Block a user