Fix TypeScript build errors in frontend

- Add explicit type parameter to fetchWrapper call in schedules.ts
- Import QuestionRequest type in SessionDetail.tsx
This commit is contained in:
Chris Scott committed 2026-03-22 18:29:49 -04:00
1 parent f18bcbbf3e
commit 1e8b302de7
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -27,8 +27,8 @@ export async function listRepoSchedules(repoId: number): Promise<{ jobs: Schedul
}
export async function getScheduleCounts(): Promise<Map<number, ScheduleCount>> {
const response = await fetchWrapper(`${API_BASE_URL}/api/schedules/all`)
const jobs = response.jobs as ScheduleJobWithRepo[]
const response = await fetchWrapper<{ jobs: ScheduleJobWithRepo[] }>(`${API_BASE_URL}/api/schedules/all`)
const jobs = response.jobs
const counts = new Map<number, ScheduleCount>()
jobs.forEach((job) => {