Skip to content
Snippets Groups Projects
Commit 6e46b59c authored by Max's avatar Max
Browse files

another mistakes was made

parent 2cdb3fbb
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ register_middle_content('<h4 class="display-4 mb-3">Anstehende Veranstaltungen</
clearedÜbungen.push({"name":actUebung[0].parent,"startTime":actUebung[0].startTime,"endTime":actUebung[0].endTime,"location":actLocation, type:"Übung"})
})
const vorlesungen = appointments.filter(l=> l.type ==="Vorlesung")
allAppointments = [...clearedÜbungen,...vorlesungen].sort((a, b) => a.startTime.localeCompare(b.startTime))
allAppointments = [...vorlesungen,...clearedÜbungen].sort((a, b) => a.startTime.localeCompare(b.startTime))
allAppointments.forEach(function (appointment) {
console.log(appointment)
console.log(appointment.type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment