diff --git a/src/lib/components/furniture/TopNav.svelte b/src/lib/components/furniture/TopNav.svelte index 37d5f9d..0bfb18a 100644 --- a/src/lib/components/furniture/TopNav.svelte +++ b/src/lib/components/furniture/TopNav.svelte @@ -81,22 +81,27 @@ switch ($navbarDisplay) { case 'bookmarked': - items = $bookmarks.map((bookmark) => ({ - href: bookmark.href, - label: bookmark.label, - icon: bookmark.icon, - description: bookmark.description, - })); + items = $bookmarks + .filter((bookmark) => bookmark.label) + .map((bookmark) => ({ + href: bookmark.href, + label: bookmark.label, + icon: bookmark.icon, + description: bookmark.description, + })); // Show most recent bookmarks first return items.reverse(); case 'frequent': - items = $frequentlyUsedTools.slice(0, 8).map((tool) => ({ - href: tool.href, - label: tool.label || 'Untitled Tool', - icon: tool.icon, - description: tool.description, - })); + items = $frequentlyUsedTools + .filter((tool) => tool.label) + .slice(0, 8) + .map((tool) => ({ + href: tool.href, + label: tool.label || 'Untitled Tool', + icon: tool.icon, + description: tool.description, + })); // Already sorted by frequency, no need to reverse return items; @@ -106,7 +111,7 @@ case 'default': default: // Keep default navigation items in their original order - return TOP_NAV; + return TOP_NAV.filter((item) => item.label); } })(); @@ -158,8 +163,8 @@