File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,23 @@ export default function Page(): JSX.Element {
6767 ) : projectsList === null ? (
6868 < Loading />
6969 ) : (
70- projectsGroupedByTag . map ( ( group , groupIndex ) => (
71- < Fragment key = { groupIndex } >
72- < h1 className = "text-xl font-bold m-2 mt-8 self-center" >
73- < Locale localeKey = { `projects-tag-${ group . tag } ` as DictionaryKeys < "projects-tag" > } />
74- </ h1 >
75- < div className = "flex flex-row flex-wrap gap-4 justify-center p-4 max-w-7xl" >
76- { group . projects . map ( ( project , projectIndex ) => (
77- < ProjectCard project = { project } key = { projectIndex } />
78- ) ) }
79- </ div >
80- </ Fragment >
81- ) )
70+ projectsGroupedByTag . map (
71+ ( group , groupIndex ) =>
72+ group . projects . length > 0 && (
73+ < Fragment key = { groupIndex } >
74+ < h1 className = "text-xl font-bold m-2 mt-8 self-center" >
75+ < Locale
76+ localeKey = { `projects-tag-${ group . tag } ` as DictionaryKeys < "projects-tag" > }
77+ />
78+ </ h1 >
79+ < div className = "flex flex-row flex-wrap gap-4 justify-center p-4 max-w-7xl" >
80+ { group . projects . map ( ( project , projectIndex ) => (
81+ < ProjectCard project = { project } key = { projectIndex } />
82+ ) ) }
83+ </ div >
84+ </ Fragment >
85+ ) ,
86+ )
8287 ) }
8388 </ div >
8489 </ main >
You can’t perform that action at this time.
0 commit comments