aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-02-02 10:03:28 +0100
committercedricnjanga2018-02-06 11:11:32 -0800
commitae06f709d3937ec31e4883bcf0e97be5ca69ebc0 (patch)
tree0a26d74fdf5a178ad407c2f14f99353ccc2f8e92
parentb9b9d8141e9e5869680604559770f09d840b0683 (diff)
downloadchouette-core-ae06f709d3937ec31e4883bcf0e97be5ca69ebc0.tar.bz2
Refs #5825; Fix pagination
-rw-r--r--app/javascript/vehicle_journeys/actions/index.js4
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))
+ }
}
})
},