KI-AGENT: Migration für Dokumentenimporte aktivieren
All checks were successful
Build and Push Docker Images / build-central-services-api (push) Successful in 34s
Build and Push Docker Images / build-docs (push) Successful in 34s
Build and Push Docker Images / build-backend (push) Successful in 58s
Build and Push Docker Images / build-frontend (push) Successful in 1m59s
Build and Push Docker Images / build-website (push) Successful in 34s
Build and Push Docker Images / build-central-services-admin (push) Successful in 34s

This commit is contained in:
2026-08-07 21:23:52 +02:00
parent 9822d90bdd
commit 93d2769f23
2 changed files with 16 additions and 1 deletions

View File

@@ -41,7 +41,15 @@ const form = ref(emptyForm())
const load = async () => {
loading.value = true
try {
sources.value = await api("/api/document-imports")
const result = await api<ImportSource[]>("/api/document-imports")
sources.value = Array.isArray(result) ? result : []
} catch (error: any) {
sources.value = []
toast.add({
title: "Importquellen konnten nicht geladen werden",
description: error?.data?.error || error?.message || "Bitte versuche es später erneut.",
color: "error",
})
} finally {
loading.value = false
}