diff --git a/app/Http/Controllers/Chart/AccountController.php b/app/Http/Controllers/Chart/AccountController.php index 108075bc63..a5f440260e 100644 --- a/app/Http/Controllers/Chart/AccountController.php +++ b/app/Http/Controllers/Chart/AccountController.php @@ -427,7 +427,8 @@ class AccountController extends Controller */ public function period(Account $account, Carbon $start, Carbon $end): JsonResponse { - $cache = new CacheProperties; + $chartData = []; + $cache = new CacheProperties; $cache->addProperty('chart.account.period'); $cache->addProperty($start); $cache->addProperty($end);