Create loggedCalls.router

This commit is contained in:
David Corbitt
2023-08-12 00:03:06 -07:00
parent ed90bc5a99
commit 098805ef25
6 changed files with 35 additions and 38 deletions

View File

@@ -180,7 +180,7 @@ export const useLoggedCalls = () => {
const selectedProjectId = useAppStore((state) => state.selectedProjectId);
const { page, pageSize } = usePageParams();
return api.dashboard.loggedCalls.useQuery(
return api.loggedCalls.list.useQuery(
{ projectId: selectedProjectId ?? "", page, pageSize },
{ enabled: !!selectedProjectId },
);