aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/helpers
diff options
context:
space:
mode:
authorLuc Donnet2018-02-01 17:39:25 +0100
committerGitHub2018-02-01 17:39:25 +0100
commitf6b2a0b17591a786d41ba77ba1a2664223fc4b96 (patch)
tree7db780a7ea455bb182e5fd9a1ef1830d43d2795f /app/javascript/helpers
parentc172bdb34862b6b48ea52e0de71a9444f14c2478 (diff)
parentb91895f897f6a9b401844e373d020c3f458fc130 (diff)
downloadchouette-core-f6b2a0b17591a786d41ba77ba1a2664223fc4b96.tar.bz2
Merge pull request #273 from af83/5798-show-return-times-on-vjs-editor
5798 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