diff options
| author | Zog | 2018-02-01 10:34:40 +0100 |
|---|---|---|
| committer | cedricnjanga | 2018-02-06 11:10:18 -0800 |
| commit | 890d9997258f0e522c862b8443da12113126d1fe (patch) | |
| tree | 620d017142372aa70ada3ef56d12306b690826d7 /app/javascript/helpers | |
| parent | e0288495f2d30154ac3b9ba462aa23c0f07fd205 (diff) | |
| download | chouette-core-890d9997258f0e522c862b8443da12113126d1fe.tar.bz2 | |
Refs #5798 @3h; Show return journeys on the journeys' editor.
Diffstat (limited to 'app/javascript/helpers')
| -rw-r--r-- | app/javascript/helpers/stop_area_header_manager.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/helpers/stop_area_header_manager.js b/app/javascript/helpers/stop_area_header_manager.js index 2c820caf9..5b18e2f63 100644 --- a/app/javascript/helpers/stop_area_header_manager.js +++ b/app/javascript/helpers/stop_area_header_manager.js @@ -42,6 +42,11 @@ export default class StopAreaHeaderManager { let index = this.ids_list.indexOf(object_id) let sp = this.stopPointsList[index] let previousBreakpoint = this.stopPointsList[index - 1] + if(sp == undefined){ + console.log("STOP_POINT NOT FOUND: " + object_id) + console.log("AVAILABLE IDS:" + this.ids_list) + return + } if(index == 0 || (sp[attribute_to_check] != previousBreakpoint[attribute_to_check])){ showHeadline = true headline = this.hasFeature('long_distance_routes') ? sp.country_name : sp.city_name |
