diff --git a/ghost/sodo-search/src/components/PopupModal.js b/ghost/sodo-search/src/components/PopupModal.js index f0177b1963..0fd20aadaf 100644 --- a/ghost/sodo-search/src/components/PopupModal.js +++ b/ghost/sodo-search/src/components/PopupModal.js @@ -182,8 +182,8 @@ function TagResults({tags}) { const TagItems = tags.map((d) => { return ( ); }); @@ -293,14 +293,9 @@ function SearchResultBox() { if (indexComplete && searchValue) { searchResults = searchIndex.search(searchValue); - filteredPosts = searchResults?.posts?.map((d) => { - return { - id: d?.id, - excerpt: d?.excerpt, - title: d?.title, - slug: d?.slug - }; - }) || []; + filteredPosts = searchResults?.posts || []; + filteredAuthors = searchResults?.authors || []; + filteredTags = searchResults?.tags || []; } const hasResults = filteredPosts?.length || filteredAuthors?.length || filteredTags?.length;