mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-09-27 17:46:27 -05:00
Filter out schedules that are missing their settings
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user