Fix explore page being inaccessible when opted-out of trends in web UI (#25716)
This commit is contained in:
parent
93e8a15415
commit
ceeb2b8c41
5 changed files with 12 additions and 10 deletions
|
@ -11,7 +11,7 @@ import { connect } from 'react-redux';
|
|||
import Column from 'mastodon/components/column';
|
||||
import ColumnHeader from 'mastodon/components/column_header';
|
||||
import Search from 'mastodon/features/compose/containers/search_container';
|
||||
import { showTrends } from 'mastodon/initial_state';
|
||||
import { trendsEnabled } from 'mastodon/initial_state';
|
||||
|
||||
import Links from './links';
|
||||
import SearchResults from './results';
|
||||
|
@ -26,7 +26,7 @@ const messages = defineMessages({
|
|||
|
||||
const mapStateToProps = state => ({
|
||||
layout: state.getIn(['meta', 'layout']),
|
||||
isSearching: state.getIn(['search', 'submitted']) || !showTrends,
|
||||
isSearching: state.getIn(['search', 'submitted']) || !trendsEnabled,
|
||||
});
|
||||
|
||||
class Explore extends PureComponent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue