diff options
| author | Zog | 2018-02-02 10:03:28 +0100 |
|---|---|---|
| committer | Zog | 2018-02-02 10:03:28 +0100 |
| commit | e3342d251aa71702944b510ce59123295b53f9b0 (patch) | |
| tree | 98cb487b82832592533212690202c4f32af28c14 | |
| parent | 16a774d2f7cf499c564358e633fb23120e86fddc (diff) | |
| download | chouette-core-5825-fix-vjs-index.tar.bz2 | |
Refs #5825; Fix pagination5825-fix-vjs-index
| -rw-r--r-- | app/javascript/vehicle_journeys/actions/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/vehicle_journeys/actions/index.js b/app/javascript/vehicle_journeys/actions/index.js index bb4ccf417..4ca8bd73b 100644 --- a/app/javascript/vehicle_journeys/actions/index.js +++ b/app/javascript/vehicle_journeys/actions/index.js @@ -387,7 +387,9 @@ const actions = { } window.currentItemsLength = vehicleJourneys.length dispatch(actions.receiveVehicleJourneys(vehicleJourneys, returnJourneys)) - dispatch(actions.receiveTotalCount(json.total)) + if(!returnJourneys){ + dispatch(actions.receiveTotalCount(json.total)) + } } }) }, |
