fix: Remove broken table_exists check
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:
1 parent
484c25575d
commit
8be87bfdfb
2 files changed
+10
-22
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user