From a22add0857c7b3b3ac8c5e152f8cb1fd8f1631fe Mon Sep 17 00:00:00 2001 From: Carl Rosell Date: Thu, 13 Dec 2018 15:31:53 +0100 Subject: [PATCH] fix(www) Fix query for plugin links --- www/src/components/plugin-searchbar-body.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/src/components/plugin-searchbar-body.js b/www/src/components/plugin-searchbar-body.js index 66213439521d2..7df01bede72a7 100644 --- a/www/src/components/plugin-searchbar-body.js +++ b/www/src/components/plugin-searchbar-body.js @@ -301,14 +301,14 @@ class Search extends Component { } // the result component is fed into the InfiniteHits component -const Result = ({ hit, pathname, search }) => { +const Result = ({ hit, pathname, query }) => { // Example: // pathname = `/plugins/gatsby-link/` || `/plugins/@comsoc/gatsby-mdast-copy-linked-files` // hit.name = `gatsby-link` || `@comsoc/gatsby-mdast-copy-linked-files` const selected = pathname.includes(hit.name) return (