mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 09:35:56 -05:00
Fix errors
This commit is contained in:
parent
6c5d655bd5
commit
190cb7553e
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue