1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-02 08:20:22 +01:00

Improvement: Fix build issue

This commit is contained in:
Akshay 2021-04-22 11:54:39 +02:00
parent aa23244353
commit b252d64be5

View File

@ -11,10 +11,10 @@ export default function MarkdownList({ pageContext }) {
const modules = {} const modules = {}
pageContext.markdownList.map(({ node }) => { pageContext.markdownList.map(({ node }) => {
let module_path = node.frontmatter.module.split('.') const modulePath = node.frontmatter.module.split('.')
let key = const key =
module_path.slice(0, module_path.length - 1).join('.') || modulePath.slice(0, modulePath.length - 1).join('.') ||
module_path.join('.') modulePath.join('.')
if (!modules[key]) { if (!modules[key]) {
modules[key] = [] modules[key] = []