From 5c66b5f45f8b9a99bd01570a12e48b9e55825464 Mon Sep 17 00:00:00 2001 From: maisur Date: Fri, 6 Oct 2023 00:01:58 +0700 Subject: [PATCH] Fix error when deleting --- src/Actions/DeleteAction.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Actions/DeleteAction.php b/src/Actions/DeleteAction.php index 05c80a8..bf4f13f 100644 --- a/src/Actions/DeleteAction.php +++ b/src/Actions/DeleteAction.php @@ -20,7 +20,10 @@ protected function setUp(): void ); $this->after( - fn (FullCalendarWidget $livewire) => $livewire->refreshRecords() + function (FullCalendarWidget $livewire) { + $livewire->record = null; + $livewire->refreshRecords(); + } ); $this->cancelParentActions();