0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

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,