From 054a6083b8539666290de54c49c1be97bd14bd0a Mon Sep 17 00:00:00 2001 From: br0kenpixel <23280129+br0kenpixel@users.noreply.github.com> Date: Sun, 2 Nov 2025 17:33:09 +0100 Subject: [PATCH] refactor: auto-infer type of next states data --- frontend/app/components/InternshipStatusEditor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/InternshipStatusEditor.vue b/frontend/app/components/InternshipStatusEditor.vue index fbaf858..0716630 100644 --- a/frontend/app/components/InternshipStatusEditor.vue +++ b/frontend/app/components/InternshipStatusEditor.vue @@ -23,7 +23,7 @@ const loading = ref(false); const save_error = ref(null as null | string); const client = useSanctumClient(); -const { data, refresh } = await useSanctumFetch(`/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