|
|
|
@ -223,7 +223,7 @@ class TripForm extends Component {
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
|
const one = this.state |
|
|
|
|
const { frequency } = this.props |
|
|
|
|
const { frequency, stoptime } = this.props |
|
|
|
|
const { fetching } = this.props.trip |
|
|
|
|
// redirect to view page if no data
|
|
|
|
|
const { agencyId, routeId } = this.props.match.params |
|
|
|
@ -247,8 +247,9 @@ class TripForm extends Component {
|
|
|
|
|
trip={this.state.id} |
|
|
|
|
toggleEditMode={this.toggleNewStopTime} /> } |
|
|
|
|
</StyleBox> |
|
|
|
|
{this.props.stoptime.results.map( |
|
|
|
|
ele => <StopTimeOne key={`stb-${ele.id}`} item={ele} />)} |
|
|
|
|
{stoptime.results |
|
|
|
|
.sort((a, b) => a.sequence - b.sequence) |
|
|
|
|
.map(ele => <StopTimeOne key={`stb-${ele.id}`} item={ele} />)} |
|
|
|
|
</div> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|