1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Improvement: Fix failing build

This commit is contained in:
Akshay 2021-04-12 12:55:23 +02:00
parent 534a101eca
commit e5487f32bf

View File

@ -40,7 +40,7 @@ export default function MarkdownList({ pageContext }) {
return selectedSubSection === subSectionIndex ? (
<li key={subSectionIndex}>
<div onClick={() => changeSubsection(subSectionIndex)}>
{ele.replaceAll('_', ' ')}
{ele.replace(/_/g, ' ')}
</div>
<ul>
{sub_sections[ele].map((node) => (
@ -48,7 +48,7 @@ export default function MarkdownList({ pageContext }) {
key={node.id}
onClick={() => changePage(subSectionIndex, node)}
>
{node.frontmatter.title.replaceAll('_', ' ')}
{node.frontmatter.title.replace(/_/g, ' ')}
</li>
))}
</ul>
@ -56,7 +56,7 @@ export default function MarkdownList({ pageContext }) {
) : (
<li>
<div onClick={() => changeSubsection(subSectionIndex)}>
{ele.replaceAll('_', ' ')}
{ele.replace(/_/g, ' ')}
</div>
</li>
)