Use calendar.refreshEvents() instead of refreshing each event source

This commit is contained in:
Adam Goldsmith 2021-04-01 13:55:33 -04:00
parent 37e814580a
commit a252b61316

View File

@ -79,9 +79,7 @@ export default class App extends Vue {
typeof FullCalendar typeof FullCalendar
>; >;
const calendar = calendarComponent.getApi() as Calendar; const calendar = calendarComponent.getApi() as Calendar;
calendar.getEventSources().map((es) => { calendar.refetchEvents();
es.refetch();
});
} }
eventDataTransform(eventData: EventInput): EventInput | false { eventDataTransform(eventData: EventInput): EventInput | false {