aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/helpers
diff options
context:
space:
mode:
authorZog2018-02-01 10:34:40 +0100
committercedricnjanga2018-02-06 11:10:18 -0800
commit890d9997258f0e522c862b8443da12113126d1fe (patch)
tree620d017142372aa70ada3ef56d12306b690826d7 /app/javascript/helpers
parente0288495f2d30154ac3b9ba462aa23c0f07fd205 (diff)
downloadchouette-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.js5
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