From b252d64be515535db721ec31d24c32e75f04c6e2 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 22 Apr 2021 11:54:39 +0200 Subject: [PATCH] Improvement: Fix build issue --- src/templates/MarkdownList.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/templates/MarkdownList.jsx b/src/templates/MarkdownList.jsx index 18089a9c..dd034ec4 100644 --- a/src/templates/MarkdownList.jsx +++ b/src/templates/MarkdownList.jsx @@ -11,10 +11,10 @@ export default function MarkdownList({ pageContext }) { const modules = {} pageContext.markdownList.map(({ node }) => { - let module_path = node.frontmatter.module.split('.') - let key = - module_path.slice(0, module_path.length - 1).join('.') || - module_path.join('.') + const modulePath = node.frontmatter.module.split('.') + const key = + modulePath.slice(0, modulePath.length - 1).join('.') || + modulePath.join('.') if (!modules[key]) { modules[key] = []