Hi,
I was wondering if there's a better way to get all the intervals that are added to a project calendar?
I currently have this code but the last line feels wrong, I just haven't found the right property/getter yet instead of $currentValue to populate allIntervals.
It would also be good to replace the any with an actual class but again I can't find the right one to use as intervalStore isn't a property of CalendarModel.
const workingCalendar = (): CalendarModel =>
schedulerInstance.value.project?.calendars[
DEFAULT_WORKING_CALENDAR
] as CalendarModel;
const calendar = workingCalendar() as any;
const allIntervals = calendar.intervalStore.$currentValue;