saade / filament-fullcalendar

The Most Popular JavaScript Calendar as a Filament Widget
MIT License
269 stars 83 forks source link

Fix "Can't set model as property if it hasn't been persisted yet" after deleting a record. #114

Closed chickgit closed 11 months ago

chickgit commented 11 months ago

I got error "Can't set model as property if it hasn't been persisted yet" when deleting a record. I'm trying to find the solution in discord but no response about this.

So in Livewire 3 it seems we must persist the property. this PR solve my issue.

Reference: Livewire 3 : Can't set model as property if it hasn't been persisted yet ModelSynth

diegoldev commented 11 months ago

I can confirm that this PR solve the problem. I had the same issue and adding this PR code was solved. Thanks @chickgit !

saade commented 11 months ago

Thanks!