feat(backend,frontend): Update application form, add label to switch
This commit is contained in:
@@ -53,9 +53,13 @@ export function useApplicationForm() {
|
||||
}
|
||||
|
||||
async function updateApplicationForm(
|
||||
id: string,
|
||||
applicationFormDto: ApplicationFormDto
|
||||
id?: string,
|
||||
applicationFormDto?: ApplicationFormDto
|
||||
): Promise<ApplicationFormDto> {
|
||||
if (!id || !applicationFormDto) {
|
||||
return Promise.reject(new Error('ID or application form DTO missing'))
|
||||
}
|
||||
|
||||
try {
|
||||
currentApplicationForm.value = await applicationFormApi.updateApplicationForm(id, applicationFormDto)
|
||||
return currentApplicationForm.value
|
||||
|
||||
Reference in New Issue
Block a user