fix: correct API type for kb-list in KnowledgeSources
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
All checks were successful
Deploy Admin Frontend / build-and-deploy (push) Successful in 8s
This commit is contained in:
parent
f6f9ab2ef0
commit
d07bca4897
@ -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,
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user