in src/client/components/classified_report_frame.tsx [16:32]
queryFn: async () => {
const res = await fetch(
`${import.meta.env.VITE_BACKEND_WEB_ROOT}/api/classified_reports.json?${new URLSearchParams({ from, to, prediction })}`,
{
credentials: "include",
},
);
const resData = await res.json();
if (res.status == 200) {
return resData;
} else if (resData.error) {
throw new Error(resData.error);
} else {
throw new Error(`Unexpected sever-side error! status code: ${res.status}`);
}
},