From 36aa8d7558585f3059230e5424a70c33cb309605 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Tue, 5 Jul 2022 17:43:52 +0200 Subject: [PATCH] Updated posts data to use new collection data - search results are now broken into separate collections for posts, authors and tags --- ghost/sodo-search/src/components/PopupModal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ghost/sodo-search/src/components/PopupModal.js b/ghost/sodo-search/src/components/PopupModal.js index 8fd0f8a31a..bb32d0fab4 100644 --- a/ghost/sodo-search/src/components/PopupModal.js +++ b/ghost/sodo-search/src/components/PopupModal.js @@ -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,