🐛 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:
@ -24,7 +24,7 @@ const linkedTimetable = computed(() => {
|
|||||||
return (
|
return (
|
||||||
entry.lesson == index + 1 &&
|
entry.lesson == index + 1 &&
|
||||||
entryDay == props.date.getTime() &&
|
entryDay == props.date.getTime() &&
|
||||||
(entry.teacher == e.teacher || !entry.teacher || !e.teacher)
|
(entry.teacher == e.teacher || !entry.teacher)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user