Skip to content

Commit aaf76d4

Browse files
authored
fix:[lar-183] Detele thread in dashboard (#311)
2 parents 3006d75 + 96ab635 commit aaf76d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/Livewire/Components/User/Threads.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,11 @@ public function deleteAction(): Action
6868
->requiresConfirmation()
6969
->action(function (array $arguments): void {
7070
/** @var Thread $thread */
71-
$thread = Thread::query()->find($arguments['thread']);
71+
$thread = Thread::query()->find($arguments['id']);
7272

7373
$this->authorize('delete', $thread);
7474

7575
app(DeleteThreadAction::class)->execute($thread);
76-
7776
Notification::make()
7877
->success()
7978
->title(__('notifications.thread.deleted'))

0 commit comments

Comments
 (0)