Merge pull request #1794 from LLK/hotfix/shim-formsy

[Master] ES6: Fixes for IE
This commit is contained in:
Ray Schamp 2018-01-31 16:20:19 -05:00 committed by GitHub
commit 3dd61cd1d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 97 additions and 4 deletions

View file

@ -100,7 +100,7 @@ class Search extends React.Component {
</li>
</a>
);
if (this.props.tab === type) {
if (this.state.tab === type) {
allTab = (
<a href={`/search/${type}?q=${term}/`}>
<li className="active">
@ -137,7 +137,7 @@ class Search extends React.Component {
<Grid
cards
showAvatar
itemType={this.props.tab}
itemType={this.state.tab}
items={this.state.loaded}
showFavorites={false}
showLoves={false}
@ -159,8 +159,7 @@ class Search extends React.Component {
Search.propTypes = {
dispatch: PropTypes.func,
intl: intlShape,
searchTerm: PropTypes.string,
tab: PropTypes.string
searchTerm: PropTypes.string
};
const mapStateToProps = state => ({

File diff suppressed because one or more lines are too long