diff --git a/interface/src/app/main/Scheduler.tsx b/interface/src/app/main/Scheduler.tsx index 0552923a4..0029a8eaa 100644 --- a/interface/src/app/main/Scheduler.tsx +++ b/interface/src/app/main/Scheduler.tsx @@ -27,6 +27,7 @@ import { useLayoutTitle } from 'components'; import { useI18nContext } from 'i18n/i18n-react'; +import { useInterval } from 'utils'; import { readSchedule, writeSchedule } from '../../api/app'; import SettingsSchedulerDialog from './SchedulerDialog'; @@ -73,6 +74,12 @@ const Scheduler = () => { ); } + useInterval(() => { + if (numChanges === 0) { + void fetchSchedule(); + } + }); + useEffect(() => { const formatter = new Intl.DateTimeFormat(locale, { weekday: 'short',