mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03: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
@ -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…
Reference in New Issue
Block a user