From 9090fc2b4b3538ae672cee3a7726fffbf584e351 Mon Sep 17 00:00:00 2001 From: Patrick Kalita Date: Tue, 25 Jun 2024 10:55:17 -0700 Subject: [PATCH 1/2] Reset hasChange value after record update API call --- web/src/views/SubmissionPortal/store/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/views/SubmissionPortal/store/index.ts b/web/src/views/SubmissionPortal/store/index.ts index 0b699934..1a92762e 100644 --- a/web/src/views/SubmissionPortal/store/index.ts +++ b/web/src/views/SubmissionPortal/store/index.ts @@ -276,6 +276,7 @@ async function incrementalSaveRecord(id: string): Promise { if (hasChanged.value) { const response = await api.updateRecord(id, payload, undefined, permissions); + hasChanged.value = 0; return response.httpStatus; } hasChanged.value = 0; From 00aea5cbd6f7e638d1b436ed5b553ce4d42f589b Mon Sep 17 00:00:00 2001 From: Patrick Kalita Date: Tue, 25 Jun 2024 10:55:44 -0700 Subject: [PATCH 2/2] Remove extraneous call to onDataChange during tab change --- web/src/views/SubmissionPortal/HarmonizerView.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/views/SubmissionPortal/HarmonizerView.vue b/web/src/views/SubmissionPortal/HarmonizerView.vue index 0a18daf6..6fb1a41b 100644 --- a/web/src/views/SubmissionPortal/HarmonizerView.vue +++ b/web/src/views/SubmissionPortal/HarmonizerView.vue @@ -448,8 +448,6 @@ export default defineComponent({ return; } - onDataChange(); - await validate(); // When changing templates we may need to populate the common columns @@ -781,7 +779,7 @@ export default defineComponent({ {{ HARMONIZER_TEMPLATES[templateKey].displayName }}