From e0585bebcb9d0f15fda812919991587a73ffbd7e Mon Sep 17 00:00:00 2001 From: Matt Isenhower Date: Thu, 12 Sep 2024 09:56:23 -0700 Subject: [PATCH] Filter out schedules that are missing their settings --- src/stores/schedules.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/schedules.mjs b/src/stores/schedules.mjs index 703d6ff..8009244 100644 --- a/src/stores/schedules.mjs +++ b/src/stores/schedules.mjs @@ -25,7 +25,7 @@ function defineScheduleStore(id, options) { }; const time = useTimeStore(); - const schedules = computed(() => options.nodes()?.map(n => transform(n))); + const schedules = computed(() => options.nodes()?.map(n => transform(n)).filter(s => s.settings)); const currentSchedules = computed(() => schedules.value?.filter(s => time.isCurrent(s.endTime))); const activeSchedule = computed(() => schedules.value?.find(s => time.isActive(s.startTime, s.endTime)));