add USE_FILTER_DESCRIPTIONS option

This commit is contained in:
Lachlan Kermode
2020-06-30 12:55:13 +02:00
parent 1501bbda78
commit e381d0d15a
4 changed files with 33 additions and 15 deletions

View File

@@ -40,12 +40,10 @@ class Dashboard extends React.Component {
componentDidMount () {
if (!this.props.app.isMobile) {
this.props.actions.fetchDomain()
.then(domain => this.props.actions.updateDomain(domain))
.then(({ domain }) => {
if (domain.categories.length >= 4) {
this.props.actions.updateDimensions({ marginTop: 0 })
}
})
.then(domain => this.props.actions.updateDomain({
domain,
features: this.props.features
}))
}
// NOTE: hack to get the timeline to always show. Not entirely sure why
// this is necessary.