From 43eece76c85c0ecb33d6f78f4f163b9d4bfce06b Mon Sep 17 00:00:00 2001 From: qhanson55 Date: Wed, 15 Jan 2025 15:39:08 -0800 Subject: [PATCH] autosave doesn't remove error messages anymore, while still only triggering once --- .../components/file/AdvancedFileUpload.vue | 1 - frontend/src/components/form/FormAutosave.vue | 31 ++++++++++++++----- .../submission/SubmissionIntakeForm.vue | 7 +---- 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/file/AdvancedFileUpload.vue b/frontend/src/components/file/AdvancedFileUpload.vue index 2269943a..5fd30eef 100644 --- a/frontend/src/components/file/AdvancedFileUpload.vue +++ b/frontend/src/components/file/AdvancedFileUpload.vue @@ -30,7 +30,6 @@ const { getConfig } = storeToRefs(useConfigStore()); const submissionStore = useSubmissionStore(); // State -// const curActivityId: Ref = ref(undefined); const fileInput: Ref = ref(null); const uploading: Ref = ref(false); diff --git a/frontend/src/components/form/FormAutosave.vue b/frontend/src/components/form/FormAutosave.vue index efb24a19..5f1fca8d 100644 --- a/frontend/src/components/form/FormAutosave.vue +++ b/frontend/src/components/form/FormAutosave.vue @@ -1,5 +1,5 @@ diff --git a/frontend/src/components/housing/submission/SubmissionIntakeForm.vue b/frontend/src/components/housing/submission/SubmissionIntakeForm.vue index 3be1e015..c67bbac9 100644 --- a/frontend/src/components/housing/submission/SubmissionIntakeForm.vue +++ b/frontend/src/components/housing/submission/SubmissionIntakeForm.vue @@ -429,12 +429,7 @@ function syncFormAndRoute(actId: string, drftId: string) { } if (actId) { - formRef.value?.resetForm({ - values: { - ...formRef.value?.values, - activityId: actId - } - }); + formRef.value?.setFieldValue('activityId', actId); } }