Remove debug console logs from MannschaftenUebersicht, TermineVorschau, spielplaene, and filterData components to clean up code and improve performance.

This commit is contained in:
Torsten Schulz (local)
2025-12-19 10:06:01 +01:00
parent cbe02a6caf
commit 5a85c3d31a
5 changed files with 2 additions and 41 deletions

View File

@@ -49,7 +49,6 @@ const termine = ref([])
const naechsteTermine = computed(() => {
const heute = new Date()
console.log('Heute ist:', heute.toISOString().split('T')[0])
const kommende = termine.value
.filter(t => {
@@ -61,9 +60,7 @@ const naechsteTermine = computed(() => {
} else {
terminDatum = new Date(t.datum)
}
const istKommend = terminDatum >= heute
console.log(`Termin ${t.titel} (${t.datum}): ${istKommend ? 'KOMMEND' : 'VERSTRICHEN'}`)
return istKommend
return terminDatum >= heute
})
.sort((a, b) => {
const da = new Date(`${a.datum}${a.uhrzeit ? 'T' + a.uhrzeit + ':00' : ''}`)
@@ -71,7 +68,6 @@ const naechsteTermine = computed(() => {
return da - db
})
console.log('Kommende Termine:', kommende)
return kommende
})