Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: update sidebar nav styles empty state

Dillion Vermaeb9068752201
diff --git a/components/sidebar-nav.tsx b/components/sidebar-nav.tsx
index d5895db4..142cc053 100644
--- a/components/sidebar-nav.tsx
+++ b/components/sidebar-nav.tsx
@@ -20,7 +20,7 @@ export function DocsSidebarNav({ items }: DocsSidebarNavProps) {
<h4 className="mb-1 rounded-md px-2 py-1 text-sm font-semibold">
{item.title}
</h4>
- {item?.items?.length && (
+ {item?.items?.length > 0 && (
<DocsSidebarNavItems items={item.items} pathname={pathname} />
)}
</div>