diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index 9845b00..a05499d 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -82,9 +82,13 @@ export default function Hero() { const displayedTools = bookmarkedToolPaths.length > 0 - ? bookmarkedToolPaths - .map((path) => toolsMap.get(path)) - .filter((tools) => tools != undefined) + ? bookmarkedToolPaths.flatMap((path) => { + const tool = toolsMap.get(path); + if (tool === undefined) { + return []; + } + return [tool]; + }) : exampleTools; return (