mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-21 15:09:32 +02:00
Fix typing
This commit is contained in:
@@ -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 (
|
||||
|
Reference in New Issue
Block a user