mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-07 09:24:55 +05:30
Fix typing
This commit is contained in:
parent
911057d560
commit
afc61e6f4c
1 changed files with 7 additions and 3 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue