From 190cb7553e3b4b3436290149709ab5e82ed276ca Mon Sep 17 00:00:00 2001 From: kyleplo <31634240+kyleplo@users.noreply.github.com> Date: Fri, 27 Jul 2018 13:09:48 -0400 Subject: [PATCH] Fix errors --- src/views/search/search.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/search/search.jsx b/src/views/search/search.jsx index 092dae2f9..fe0713f1d 100644 --- a/src/views/search/search.jsx +++ b/src/views/search/search.jsx @@ -11,6 +11,7 @@ const Button = require('../../components/forms/button.jsx'); const Form = require('../../components/forms/form.jsx'); const Grid = require('../../components/grid/grid.jsx'); const navigationActions = require('../../redux/navigation.js'); +const Select = require('../../components/forms/select.jsx'); const TitleBanner = require('../../components/title-banner/title-banner.jsx'); const Tabs = require('../../components/tabs/tabs.jsx'); @@ -63,7 +64,9 @@ class Search extends React.Component { mode = mode.substring(0, term.indexOf('&')); } mode = decodeURIComponent(mode.split('+').join(' ')); - this.state.mode = mode; + this.setState({ + mode: mode + }); } componentDidUpdate (prevProps) { if (this.props.searchTerm !== prevProps.searchTerm) { @@ -227,7 +230,6 @@ class Search extends React.Component { Search.propTypes = { dispatch: PropTypes.func, intl: intlShape, - mode: PropTypes.string, searchTerm: PropTypes.string };