From ae06f709d3937ec31e4883bcf0e97be5ca69ebc0 Mon Sep 17 00:00:00 2001 From: Zog Date: Fri, 2 Feb 2018 10:03:28 +0100 Subject: Refs #5825; Fix pagination --- app/javascript/vehicle_journeys/actions/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/javascript') 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)) + } } }) }, -- cgit v1.2.3