mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-14 03:48:34 +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 =
|
const displayedTools =
|
||||||
bookmarkedToolPaths.length > 0
|
bookmarkedToolPaths.length > 0
|
||||||
? bookmarkedToolPaths
|
? bookmarkedToolPaths.flatMap((path) => {
|
||||||
.map((path) => toolsMap.get(path))
|
const tool = toolsMap.get(path);
|
||||||
.filter((tools) => tools != undefined)
|
if (tool === undefined) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
return [tool];
|
||||||
|
})
|
||||||
: exampleTools;
|
: exampleTools;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue