diff --git a/src/components/NarrativeCard.js b/src/components/NarrativeCard.js index 080ae85..67a6bbc 100644 --- a/src/components/NarrativeCard.js +++ b/src/components/NarrativeCard.js @@ -32,6 +32,13 @@ class NarrativeCard extends React.Component { if (prevProps.narrative === this.props.narrative && this.state.step !== prevState.step) { const step = this.props.narrative.steps[this.state.step]; this.props.onSelect([step]); + } else if (prevProps.narrative !== this.props.narrative && this.props.narrative !== null) { + this.setState({ + step: 0 + }, () => { + const step = this.props.narrative.steps[this.state.step]; + this.props.onSelect([step]); + }); } }