Remove debug console logs from MannschaftenUebersicht, TermineVorschau, spielplaene, and filterData components to clean up code and improve performance.
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user