Updated posts data to use new collection data

- search results are now broken into separate collections for posts, authors and tags
This commit is contained in:
Rishabh 2022-07-05 17:43:52 +02:00
parent c429b90c11
commit 36aa8d7558

View File

@ -289,8 +289,7 @@ function SearchResultBox() {
/* eslint-disable no-console */
if (indexComplete && searchValue) {
searchResults = searchIndex.search(searchValue);
console.log(searchResults);
filteredPosts = searchResults?.map((d) => {
filteredPosts = searchResults?.posts?.map((d) => {
return {
id: d?.id,
excerpt: d?.excerpt,