Fix Vorstand page - load config data directly from API response
This commit is contained in:
@@ -133,7 +133,7 @@ const config = ref(null)
|
|||||||
const loadConfig = async () => {
|
const loadConfig = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await $fetch('/api/config')
|
const response = await $fetch('/api/config')
|
||||||
config.value = response.config
|
config.value = response
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Fehler beim Laden der Config:', error)
|
console.error('Fehler beim Laden der Config:', error)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user