From f9e367bfbc40b6cbee030bfb735b9f530f566391 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Wed, 15 May 2019 16:58:57 +0200 Subject: [PATCH] category search fixes --- client/src/routes/Search.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/src/routes/Search.tsx b/client/src/routes/Search.tsx index d6bb09b..1bbbe91 100644 --- a/client/src/routes/Search.tsx +++ b/client/src/routes/Search.tsx @@ -40,16 +40,11 @@ export default class Search extends PureComponent { public async componentDidMount() { const { search } = this.props.location - .text - const searchPage = await queryString.parse(this.props.location.search) - .page const { text, page, categories } = queryString.parse(search) - this.props.location.search - ).categories if (text) { await this.setState({ - searchTerm: encodeURIComponent(`${text}`) + searchTerm: `${text}` }) } @@ -84,7 +79,6 @@ export default class Search extends PureComponent { page: currentPage, query: { ...queryValues, - categories: [decodeURIComponent(searchCategories)], price: [-1, 1] }, sort: {