You've already forked isop-mirror
refactor: auto-infer type of next states data
This commit is contained in:
@@ -23,7 +23,7 @@ const loading = ref(false);
|
|||||||
const save_error = ref(null as null | string);
|
const save_error = ref(null as null | string);
|
||||||
|
|
||||||
const client = useSanctumClient();
|
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) => ({
|
transform: (statuses: InternshipStatus[]) => statuses.map((state) => ({
|
||||||
title: prettyInternshipStatus(state),
|
title: prettyInternshipStatus(state),
|
||||||
value: state
|
value: state
|
||||||
|
|||||||
Reference in New Issue
Block a user