From 5b43862bf666ba6c8e3891b80201f9a0f87aa47d Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 23 Jun 2021 11:06:12 +0200 Subject: [PATCH] Fix: Codeclimate issue and minor improvement --- src/templates/Markdown/MarkdownList.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/templates/Markdown/MarkdownList.jsx b/src/templates/Markdown/MarkdownList.jsx index f0f00059..0e47c8d9 100644 --- a/src/templates/Markdown/MarkdownList.jsx +++ b/src/templates/Markdown/MarkdownList.jsx @@ -59,12 +59,12 @@ export default function MarkdownList({ data, location, pageContext }) { const keys = Object.keys(nestedModules).sort() const children = [] - if (title) - children.push( -
  • - {title} -
  • - ) + + children.push( +
  • + {title} +
  • + ) keys.forEach((element) => { children.push(