refactor: auto-infer type of next states data

This commit is contained in:
2025-11-02 17:33:09 +01:00
parent a3b21d23e9
commit 054a6083b8

View File

@@ -23,7 +23,7 @@ const loading = ref(false);
const save_error = ref(null as null | string);
const client = useSanctumClient();
const { data, refresh } = await useSanctumFetch<any>(`/api/internships/${props.internship.id}/next-statuses`, undefined, {
const { data, refresh } = await useSanctumFetch(`/api/internships/${props.internship.id}/next-statuses`, undefined, {
transform: (statuses: InternshipStatus[]) => statuses.map((state) => ({
title: prettyInternshipStatus(state),
value: state