From 96ab6357fa043e36c8a96a485a7733196eee1188 Mon Sep 17 00:00:00 2001 From: Chri$ Date: Tue, 7 Jan 2025 14:44:40 +0100 Subject: [PATCH] fix:[lar-183] Detele thread in dashboard --- app/Livewire/Components/User/Threads.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Livewire/Components/User/Threads.php b/app/Livewire/Components/User/Threads.php index 365ffaa5..a04b57d9 100644 --- a/app/Livewire/Components/User/Threads.php +++ b/app/Livewire/Components/User/Threads.php @@ -68,12 +68,11 @@ public function deleteAction(): Action ->requiresConfirmation() ->action(function (array $arguments): void { /** @var Thread $thread */ - $thread = Thread::query()->find($arguments['thread']); + $thread = Thread::query()->find($arguments['id']); $this->authorize('delete', $thread); app(DeleteThreadAction::class)->execute($thread); - Notification::make() ->success() ->title(__('notifications.thread.deleted'))