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:
parent
aa23244353
commit
b252d64be5
@ -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] = []
|
||||||
|
Loading…
Reference in New Issue
Block a user