Fixed pagination by stringifying the page number before trying to update the query param

This commit is contained in:
Michael Abashian 2017-01-10 16:00:59 -05:00
parent 2b0598f092
commit d589dceaa2

View File

@ -18,7 +18,7 @@ export default ['$scope', '$stateParams', '$state', '$filter', 'GetBasePath', 'Q
return;
}
path = GetBasePath($scope.basePath) || $scope.basePath;
queryset = _.merge($stateParams[`${$scope.iterator}_search`], { page: page });
queryset = _.merge($stateParams[`${$scope.iterator}_search`], { page: page.toString() });
$state.go('.', {
[$scope.iterator + '_search']: queryset
});