mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 12:58:35 +03:00
clear tags and categories when switching to narrative
This commit is contained in:
@@ -76,7 +76,11 @@ class Dashboard extends React.Component {
|
||||
|
||||
setNarrative (narrative) {
|
||||
// only handleSelect if narrative is not null
|
||||
if (narrative) { this.handleSelect([ narrative.steps[0] ]) }
|
||||
if (narrative) {
|
||||
this.props.actions.clearFilter('tags')
|
||||
this.props.actions.clearFilter('categories')
|
||||
this.handleSelect([ narrative.steps[0] ])
|
||||
}
|
||||
this.props.actions.updateNarrative(narrative)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user