saade / filament-fullcalendar

The Most Popular JavaScript Calendar as a Filament Widget
MIT License
282 stars 85 forks source link

refreshEvents fails if no events are returned #74

Closed ceejayoz closed 1 year ago

ceejayoz commented 1 year ago

We're doing $this->refreshEvents(); after deleting an event.

However, because of this code, if the fetchEvents() function returns zero events (i.e. we deleted our only remaining event), the calendar is not updated.

ceejayoz commented 1 year ago

58 perhaps fixes this.