diff --git a/app/Http/Controllers/TransactionController.php b/app/Http/Controllers/TransactionController.php index 90a075b7..bdf4a496 100644 --- a/app/Http/Controllers/TransactionController.php +++ b/app/Http/Controllers/TransactionController.php @@ -23,6 +23,7 @@ public function index(): Response ->each(fn (Earning $earning) => $transactions->push($earning)); Spending::query() + ->with('tag') ->where('space_id', $space->id) ->each(fn (Spending $spending) => $transactions->push($spending)); diff --git a/resources/assets/js/Pages/Transaction/Index.vue b/resources/assets/js/Pages/Transaction/Index.vue index 7c0bd0bc..d8b67aaf 100644 --- a/resources/assets/js/Pages/Transaction/Index.vue +++ b/resources/assets/js/Pages/Transaction/Index.vue @@ -75,6 +75,10 @@ const getTransactionsBySpan = (span) => {