try and fix JS

This commit is contained in:
Jonathan Summers-Muir
2022-12-09 00:09:32 +08:00
parent 8198efe033
commit 63a129bc07
5 changed files with 4 additions and 10 deletions

View File

@@ -4,7 +4,10 @@ import components from '~/components'
const RefEducationSection = (props) => {
// gracefully reject pages we can't render
if (!props.markdownContent) return <></>
if (!props.markdownContent) {
console.log(props.item.id)
return <div></div>
}
return (
<RefSubLayout.EducationSection

View File

@@ -51,7 +51,6 @@ const RefSectionHandler = (props) => {
switch (x.isFunc) {
case false:
const markdownData = props.pageProps.docs.find((doc) => doc.id === x.id)
console.log(markdownData)
return <RefEducationSection item={x} markdownContent={markdownData} />
break

View File

@@ -1,8 +0,0 @@
Hey this is Jonny, i'm writing my own content in here along with the generated stuff... wowsers
| Syntax | Description |
| --------- | ----------- |
| Header | Title |
| Paragraph | Text |
---