From b2f9fcce3e799491d3eee5f88b8a10084270f74b Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 15 Jun 2021 11:05:35 +0200 Subject: [PATCH 1/9] Improvment: Add null check --- src/templates/Markdown/MarkdownList.jsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/templates/Markdown/MarkdownList.jsx b/src/templates/Markdown/MarkdownList.jsx index bc4ef530..c1424ae5 100644 --- a/src/templates/Markdown/MarkdownList.jsx +++ b/src/templates/Markdown/MarkdownList.jsx @@ -63,11 +63,15 @@ export default function MarkdownList({ location, pageContext }) { const keys = Object.keys(nestedModules).sort() const children = [] - children.push( -
  • - {title} -
  • - ) + if (title) { + children.push( +
  • + {title} +
  • + ) + } + + keys.forEach((element) => { children.push(