diff options
Diffstat (limited to 'app/assets/javascripts')
| -rw-r--r-- | app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js b/app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js index 074dc0919..98144938c 100644 --- a/app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js +++ b/app/assets/javascripts/es6_browserified/journey_patterns/actions/index.js @@ -13,16 +13,15 @@ const actions = { fetch(req) .then(response => response.json()) .then((json) => { - console.log(json) - let stop_points = [] - for (let val of json){ + let val + for (val of json){ + let stop_points = [] for (let stop_point of val.route_short_description.stop_points){ stop_point.checked = false stop_points[stop_point.object_id] = stop_point } - // for (let stopArea of val.stop_area_short_descriptions){ - // debugger - // stop_points[stopArea.stop_area_short_description.object_id].checked = true + for (let stopArea of val.stop_area_short_descriptions){ + stop_points[stopArea.stop_area_short_description.object_id].checked = true } state.push({ name: val.name, |
