diff options
| author | Zog | 2018-04-04 16:18:13 +0200 | 
|---|---|---|
| committer | Zog | 2018-04-04 16:38:13 +0200 | 
| commit | a7d1d50b90def9d6cb9c224cdccae698ecbaba22 (patch) | |
| tree | bcb0725f0554a0613e4b75443a9cb0ecefe0582d /app/javascript/journey_patterns/reducers | |
| parent | 3bb7934e1c69c42597239611f0870abde5ef5626 (diff) | |
| download | chouette-core-a7d1d50b90def9d6cb9c224cdccae698ecbaba22.tar.bz2 | |
Refs #6213; Fix JourneyPattern editor6213-fix-journey-pattern-editor
Fix a bug when a Route uses the same stop multiple times
Diffstat (limited to 'app/javascript/journey_patterns/reducers')
| -rw-r--r-- | app/javascript/journey_patterns/reducers/journeyPatterns.js | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/journey_patterns/reducers/journeyPatterns.js b/app/javascript/journey_patterns/reducers/journeyPatterns.js index 6c38e9288..b046f2b38 100644 --- a/app/javascript/journey_patterns/reducers/journeyPatterns.js +++ b/app/javascript/journey_patterns/reducers/journeyPatterns.js @@ -22,7 +22,7 @@ const journeyPattern = (state = {}, action) =>{        }      case 'UPDATE_CHECKBOX_VALUE':        var updatedStopPoints = state.stop_points.map((s) => { -        if (String(s.id) == action.id) { +        if (String(s.position) == action.position) {            return _.assign({}, s, {checked : !s.checked})          }else {            return s  | 
