From 670ad4359b51189b9b927b41d983e49e0a6a0275 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 18 Feb 2022 16:38:15 +1100 Subject: [PATCH] Performance improvements for client portal --- app/Http/Livewire/InvoicesTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/InvoicesTable.php b/app/Http/Livewire/InvoicesTable.php index d5b75448e884..e389c4523ab5 100644 --- a/app/Http/Livewire/InvoicesTable.php +++ b/app/Http/Livewire/InvoicesTable.php @@ -75,7 +75,7 @@ class InvoicesTable extends Component } $query = $query - ->where('client_id', auth()->guard('contact')->user()->client->id) + ->where('client_id', auth()->guard('contact')->user()->client_id) ->where('status_id', '<>', Invoice::STATUS_DRAFT) ->where('status_id', '<>', Invoice::STATUS_CANCELLED) ->withTrashed()