diff --git a/app/Http/Controllers/Api/DepreciationsController.php b/app/Http/Controllers/Api/DepreciationsController.php index 9d579d21cb..254a72c98e 100644 --- a/app/Http/Controllers/Api/DepreciationsController.php +++ b/app/Http/Controllers/Api/DepreciationsController.php @@ -59,8 +59,6 @@ class DepreciationsController extends Controller } $total = $depreciations->count(); - $components = $depreciations->skip($offset)->take($limit)->get(); - $depreciations = $depreciations->skip($offset)->take($limit)->get(); return (new DepreciationsTransformer)->transformDepreciations($depreciations, $total);