diff --git a/source/src/pages/Search/index.tsx b/source/src/pages/Search/index.tsx index 7ddaa36..fd1591e 100644 --- a/source/src/pages/Search/index.tsx +++ b/source/src/pages/Search/index.tsx @@ -107,7 +107,7 @@ const Search = () => { const [selectedTags, setSelectedTags] = useState([]) const [searchInput, setSearchInput] = useState("") - const [postCards, setPostCards] = useState([]) + const [postCards, setPostCards] = useState([]) // parse search parameters useEffect(() => { @@ -188,7 +188,7 @@ const Search = () => { function doSearch() { try { - const _postCards: unknown[] = [] + const _postCards: JSX.Element[] = [] for (const res of searchIndex.search(searchInput)) { const postData = map.posts[res.ref]