feat(frontend): Improve version comparison
This commit is contained in:
@@ -133,6 +133,11 @@ async function onSave() {
|
||||
|
||||
async function onSubmit() {
|
||||
if (applicationForm.value?.id) {
|
||||
// Save the form first to persist any unsaved changes before submitting
|
||||
const updated = await updateForm(applicationForm.value.id, applicationForm.value)
|
||||
if (updated) {
|
||||
updateApplicationForm(updated)
|
||||
}
|
||||
await submitApplicationForm(applicationForm.value.id)
|
||||
await navigateTo('/')
|
||||
toast.add({ title: $t('common.success'), description: $t('applicationForms.submitted'), color: 'success' })
|
||||
|
||||
Reference in New Issue
Block a user