Enhance security and error handling in various components by refining error catch blocks to ignore specific errors, improving code clarity and consistency across the application.
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { Calendar, Users, BarChart } from 'lucide-vue-next'
|
||||
import { Users } from 'lucide-vue-next'
|
||||
|
||||
const route = useRoute()
|
||||
const mannschaft = ref(null)
|
||||
|
||||
@@ -283,7 +283,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted, computed } from 'vue'
|
||||
import { ref, onMounted } from 'vue'
|
||||
|
||||
useHead({
|
||||
title: 'Spielpläne - Mannschaften - Harheimer TC'
|
||||
@@ -398,8 +398,6 @@ const filterData = () => {
|
||||
}
|
||||
|
||||
// Zuerst nach aktueller Saison filtern (immer aktiv)
|
||||
const currentDate = new Date()
|
||||
const currentYear = currentDate.getFullYear()
|
||||
|
||||
// Da die Spiele bis 2026 gehen, nehmen wir die Saison 2025/26
|
||||
// Saison läuft vom 01.07. bis 30.06. des Folgejahres
|
||||
@@ -434,7 +432,7 @@ const filterData = () => {
|
||||
const inSaison = spielDatum >= saisonStart && spielDatum <= saisonEnd
|
||||
|
||||
return inSaison
|
||||
} catch (error) {
|
||||
} catch (_error) {
|
||||
console.error('Fehler beim Parsen von Termin:', termin, error)
|
||||
return false
|
||||
}
|
||||
@@ -738,7 +736,7 @@ const getRowClass = (row) => {
|
||||
|
||||
// Standard: Weiß
|
||||
return 'bg-white'
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return 'bg-white'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user