From f7ed3ca6615bb4950b644d56136016c4482395a8 Mon Sep 17 00:00:00 2001 From: Zog Date: Thu, 11 Jan 2018 10:49:46 +0100 Subject: Refs #5536; Fix JourneyPattern creation --- app/javascript/journey_patterns/components/JourneyPattern.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/javascript') 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 (