fix: correct API type for kb-list in KnowledgeSources
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s

This commit is contained in:
wangdl 2026-06-19 15:35:25 +08:00
parent f6f9ab2ef0
commit d07bca4897

View File

@ -46,7 +46,7 @@ export default function KnowledgeSourcesPage() {
// KB list for filter dropdown
const { data: kbList } = useQuery({
queryKey: ['admin', 'kb-list'],
queryFn: () => api.get<any[]>('/admin-api/knowledge-bases?limit=200').then(d => d?.items || []),
queryFn: () => api.get<{ items: any[] }>('/admin-api/knowledge-bases?limit=200').then(d => d?.items || []),
staleTime: 60_000,
})