✨ Only show changes matching the original teacher
This commit is contained in:
@ -16,7 +16,9 @@ const timetable = computed(() => {
|
|||||||
newElement.substitution = substitutions.value.find((entry) => {
|
newElement.substitution = substitutions.value.find((entry) => {
|
||||||
const entryDay = new Date(entry.date).getTime();
|
const entryDay = new Date(entry.date).getTime();
|
||||||
return (
|
return (
|
||||||
entry.lesson == index + 1 && entryDay == selectedDate.value.getTime()
|
entry.lesson == index + 1 &&
|
||||||
|
entryDay == selectedDate.value.getTime() &&
|
||||||
|
(entry.teacher == e.teacher || !entry.teacher || !e.teacher)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
return newElement;
|
return newElement;
|
||||||
|
Reference in New Issue
Block a user