mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
Rebase with cleaning up fetchingEvents actions
This commit is contained in:
@@ -26,7 +26,7 @@ class NarrativeCard extends React.Component {
|
||||
componentDidUpdate() {
|
||||
if (this.props.narrative !== null) {
|
||||
const step = this.props.narrative.steps[this.state.step];
|
||||
this.props.onSelect([step.id]);
|
||||
this.props.onSelect([step]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ class NarrativeCard extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
if (this.props.narrative !== null) {
|
||||
if (this.props.narrative !== null && this.props.narrative.steps[this.state.step]) {
|
||||
const steps = this.props.narrative.steps;
|
||||
const step = steps[this.state.step];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user