aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-02-02 10:03:28 +0100
committerZog2018-02-02 10:03:28 +0100
commite3342d251aa71702944b510ce59123295b53f9b0 (patch)
tree98cb487b82832592533212690202c4f32af28c14
parent16a774d2f7cf499c564358e633fb23120e86fddc (diff)
downloadchouette-core-5825-fix-vjs-index.tar.bz2
Refs #5825; Fix pagination5825-fix-vjs-index
-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))
+ }
}
})
},