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:
parent
c429b90c11
commit
36aa8d7558
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue