From 5321f4414c1e79bc2c8253e5eb979b9a451d56df Mon Sep 17 00:00:00 2001 From: EL OUFIR Hatim Date: Fri, 23 Sep 2022 23:06:12 +0100 Subject: [PATCH] Bug-fix: check the project description --- app/Http/Livewire/Projects.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/Projects.php b/app/Http/Livewire/Projects.php index b6b4fa04..58eb7ec0 100644 --- a/app/Http/Livewire/Projects.php +++ b/app/Http/Livewire/Projects.php @@ -78,7 +78,7 @@ protected function getTableColumns(): array ->label(__('Description')) ->searchable() ->sortable() - ->formatStateUsing(fn(string $state) => Str::limit(htmlspecialchars(strip_tags($state ?? '')), 50)), + ->formatStateUsing(fn(string|null $state) => Str::limit(htmlspecialchars(strip_tags($state ?? '')), 50)), UserColumn::make('owner') ->label(__('Owner')),