🚸 Improve UX in timetable editor

This commit is contained in:
2023-06-20 15:25:16 +02:00
parent 76b7946b13
commit 1bfd156a03
4 changed files with 16 additions and 7 deletions

View File

@ -224,7 +224,7 @@ export const possibleTimetableGroups = computed(() => {
// found in the current timetable
for (const day of timetable.value.data) {
for (const lesson of day) {
if (Array.isArray(lesson)) {
if (Array.isArray(lesson) && lesson.length > 1) {
for (const group of lesson) {
if (group.group && !foundTimetableGroups.includes(group.group)) {
foundTimetableGroups.push(group.group);