diff options
| -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)) + } } }) }, |
