apply narratives only if FILTERS_AS_NARRATIVES set

This commit is contained in:
Lachlan Kermode
2020-06-19 16:08:45 +02:00
parent 0c09131a0d
commit a686268839
2 changed files with 43 additions and 28 deletions

View File

@@ -1,3 +1,4 @@
/* global alert */
import React from 'react'
import { bindActionCreators } from 'redux'
@@ -149,6 +150,7 @@ class Dashboard extends React.Component {
id: name,
label: name,
description: '',
withLines: withSteps,
steps: evs
})
}
@@ -223,7 +225,7 @@ class Dashboard extends React.Component {
getCategoryColor={this.getCategoryColor}
/>
<StateOptions
showing={!app.narrative && app.filters.filters.length > 0}
showing={features.FILTERS_AS_NARRATIVES && !app.narrative && app.filters.filters.length > 0}
timelineDims={app.timeline.dimensions}
onClickHandler={this.setNarrativeFromFilters}
/>