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