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:
parent
534a101eca
commit
e5487f32bf
@ -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>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user