Skip to content

Commit d2200f7

Browse files
committed
Hide subsections with no docs articles
1 parent 2b31921 commit d2200f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/(main)/resources/[category]/docs-section.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function DocsSection({
5454
</Button>
5555
</header>
5656

57-
{gettingStarted && (
57+
{gettingStarted.length > 0 && (
5858
<>
5959
<h3 className="typography-h3">Getting Started</h3>
6060
<ul className="grid grid-cols-1 gap-6 md:grid-cols-2">
@@ -71,7 +71,7 @@ export function DocsSection({
7171
</ul>
7272
</>
7373
)}
74-
{bestPractices && (
74+
{bestPractices.length > 0 && (
7575
<>
7676
<h3 className="typography-h3">Best Practices</h3>
7777
<ul className="grid grid-cols-1 gap-6 md:grid-cols-2">

0 commit comments

Comments
 (0)