Skip to content

Commit

Permalink
Merge pull request #27 from ashleyhood/ashleyhood-patch-1
Browse files Browse the repository at this point in the history
fix: stop event flash when using `fetchEvents` method
  • Loading branch information
saade authored Jul 5, 2022
2 parents 2e173cc + d85af33 commit 78b75b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/fullcalendar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@
calendar.render();
window.addEventListener("filament-fullcalendar:refresh", () => {
calendar.removeAllEvents();
@if( $this::canFetchEvents() )
calendar.refetchEvents();
@else
calendar.removeAllEvents();
event.detail.data.map(event => calendar.addEvent(event));
@endif
});
Expand Down

0 comments on commit 78b75b4

Please sign in to comment.