Cleanup api docs and ts api-client options (#3663)

This commit is contained in:
Anbraten
2024-05-01 11:50:41 +02:00
committed by GitHub
parent 4d2610c22e
commit dbd91d3884
34 changed files with 207 additions and 189 deletions

View File

@@ -158,7 +158,7 @@ const selectedAgent = ref<Partial<Agent>>();
const isEditingAgent = computed(() => !!selectedAgent.value?.id);
async function loadAgents(page: number): Promise<Agent[] | null> {
return apiClient.getAgents(page);
return apiClient.getAgents({ page });
}
const { resetPage, data: agents } = usePagination(loadAgents, () => !selectedAgent.value);