Skip to content

Commit

Permalink
#26236: Fix StopPosterA3 generating error (#391)
Browse files Browse the repository at this point in the history
* Fix StopPosterA3 generating error

* Refactor stopId property from A3Timetable to prevent same error
  • Loading branch information
e-halinen authored Nov 14, 2023
1 parent 090a6f9 commit f226f12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/a3Timetable/a3Timetable.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ class Timetable extends Component {
</span>
</div>
</div>
<SimpleRoutes stopIds={[this.props.stopId]} date={this.props.date} />
<SimpleRoutes stopId={this.props.stopId} date={this.props.date} />
</React.Fragment>
)}

Expand Down
2 changes: 1 addition & 1 deletion src/components/a3stopPoster/a3header.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class A3Header extends Component {
{this.state.simpleRoutes && !this.state.hideDestinations && (
<SimpleRoutes
printAsA3
stopIds={[this.props.variables.stopId]}
stopId={this.props.variables.stopId}
date={this.props.variables.date}
/>
)}
Expand Down

0 comments on commit f226f12

Please sign in to comment.