WIP: filters as narratives always

This commit is contained in:
Lachlan Kermode
2020-06-19 14:49:22 +02:00
parent 442d8ea5d7
commit 973619d178
7 changed files with 118 additions and 16 deletions

View File

@@ -174,10 +174,11 @@ class Map extends React.Component {
}
renderNarratives () {
const hasNarratives = this.props.domain.narratives.length > 0
return (
<Narratives
svg={this.svgRef.current}
narratives={this.props.domain.narratives}
narratives={hasNarratives ? this.props.domain.narratives : [this.props.app.narrative]}
projectPoint={this.projectPoint}
narrative={this.props.app.narrative}
styles={this.props.ui.narratives}