🐛 Matching any substitution on empty lessons

If a timetable lesson is empty (eg. has no teacher),
just matching any lesson to it is not intended behaviour,
like it is the other way around.
This commit is contained in:
2023-10-04 11:53:09 +02:00
parent c9e48fe8b4
commit 5638a8ecb5

View File

@ -24,7 +24,7 @@ const linkedTimetable = computed(() => {
return (
entry.lesson == index + 1 &&
entryDay == props.date.getTime() &&
(entry.teacher == e.teacher || !entry.teacher || !e.teacher)
(entry.teacher == e.teacher || !entry.teacher)
);
},
);