aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/journey_patterns
diff options
context:
space:
mode:
authorZog2018-01-11 10:49:46 +0100
committerZog2018-01-11 10:49:46 +0100
commitf7ed3ca6615bb4950b644d56136016c4482395a8 (patch)
treed05b436a94e4dc5c7afd88300ddc5448470f9109 /app/javascript/journey_patterns
parent45a0b93ed96a122716815f84fa614f70586be4f0 (diff)
downloadchouette-core-f7ed3ca6615bb4950b644d56136016c4482395a8.tar.bz2
Refs #5536; Fix JourneyPattern creation
Diffstat (limited to 'app/javascript/journey_patterns')
-rw-r--r--app/javascript/journey_patterns/components/JourneyPattern.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/javascript/journey_patterns/components/JourneyPattern.js b/app/javascript/journey_patterns/components/JourneyPattern.js
index 2ae9f5552..8dc542bc8 100644
--- a/app/javascript/journey_patterns/components/JourneyPattern.js
+++ b/app/javascript/journey_patterns/components/JourneyPattern.js
@@ -5,7 +5,6 @@ import actions from '../actions'
export default class JourneyPattern extends Component{
constructor(props){
super(props)
- this.previousCity = undefined
this.previousSpId = undefined
this.updateCosts = this.updateCosts.bind(this)
}
@@ -33,7 +32,7 @@ export default class JourneyPattern extends Component{
}
cityNameChecker(sp, i) {
- return this.props.journeyPatterns.showHeader(sp.object_id + "-" + i)
+ return this.props.journeyPatterns.showHeader((sp.stop_area_object_id || sp.object_id) + "-" + i)
}
spNode(sp, headlined){
@@ -76,7 +75,6 @@ export default class JourneyPattern extends Component{
}
render() {
- this.previousCity = undefined
this.previousSpId = undefined
return (
<div className={'t2e-item' + (this.props.value.deletable ? ' disabled' : '') + (this.props.value.object_id ? '' : ' to_record') + (this.props.value.errors ? ' has-error': '') + (this.hasFeature('costs_in_journey_patterns') ? ' with-costs' : '')}>