Skip to content

Commit

Permalink
Merge pull request #114 from chickgit/3.x
Browse files Browse the repository at this point in the history
Fix "Can't set model as property if it hasn't been persisted yet" after deleting a record.
  • Loading branch information
saade authored Oct 8, 2023
2 parents 90a3ada + 5c66b5f commit 8a3babd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Actions/DeleteAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8a3babd

Please sign in to comment.