fix: Remove broken table_exists check
Deploy Development / deploy (push) Successful in 48s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

Removed faulty EXISTS check that was causing "0" error.
Added debug logging and better error messages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 4.6 committed 2026-03-27 07:34:29 +01:00
1 parent 484c25575d
commit 8be87bfdfb
2 files changed
+10 -22

No files matched your search

+5 -2
View File
@@ -40,11 +40,14 @@ export default function AdminGoalTypesPage() {
const loadGoalTypes = async () => {
setLoading(true)
setError(null)
try {
const data = await api.listGoalTypeDefinitions()
setGoalTypes(data)
console.log('[DEBUG] Loaded goal types:', data)
setGoalTypes(data || [])
} catch (err) {
setError('Fehler beim Laden der Goal Types')
console.error('[ERROR] Failed to load goal types:', err)
setError(`Fehler beim Laden der Goal Types: ${err.message || err.toString()}`)
} finally {
setLoading(false)
}