feat(#12): Add subsections to sections, fix version deletion after update

This commit is contained in:
2025-11-19 12:11:39 +01:00
parent b919cef9c4
commit 02d9b4f97c
20 changed files with 376 additions and 199 deletions

View File

@@ -54,15 +54,15 @@ export function useApplicationFormApi() {
return applicationFormApiClient.submitApplicationForm({ id })
}
async function addFormElementToSection(
async function addFormElementToSubSection(
applicationFormId: string,
sectionId: string,
subsectionId: string,
createFormElementDto: CreateFormElementDto,
position: number
): Promise<ApplicationFormDto> {
return applicationFormApiClient.addFormElementToSection({
return applicationFormApiClient.addFormElementToSubSection({
applicationFormId,
sectionId,
subsectionId,
createFormElementDto,
position
})
@@ -75,6 +75,6 @@ export function useApplicationFormApi() {
updateApplicationForm,
deleteApplicationFormById,
submitApplicationForm,
addFormElementToSection
addFormElementToSubSection
}
}