File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,17 @@ export function PageGrid({header}: Props) {
28
28
< nav >
29
29
{ header && < h2 > { header } </ h2 > }
30
30
< ul >
31
- { parentNode . children . map ( n => (
32
- < li key = { n . path } style = { { marginBottom : '1rem' } } >
33
- < h4 style = { { marginBottom : 0 } } >
34
- < Link href = { '/' + n . path } > { n . frontmatter . title } </ Link >
35
- </ h4 >
36
- { n . frontmatter . description ?? < p > { n . frontmatter . description } </ p > }
37
- </ li >
38
- ) ) }
31
+ { parentNode . children
32
+ /* NOTE: temp fix while we figure out the reason why some nodes have empty front matter */
33
+ . filter ( c => c . frontmatter . title )
34
+ . map ( n => (
35
+ < li key = { n . path } style = { { marginBottom : '1rem' } } >
36
+ < h4 style = { { marginBottom : 0 } } >
37
+ < Link href = { '/' + n . path } > { n . frontmatter . title } </ Link >
38
+ </ h4 >
39
+ { n . frontmatter . description && < p > { n . frontmatter . description } </ p > }
40
+ </ li >
41
+ ) ) }
39
42
</ ul >
40
43
</ nav >
41
44
) ;
You can’t perform that action at this time.
0 commit comments