Skip to content

Commit e0fd91d

Browse files
authored
Merge pull request #1288 from microbiomedata/issue-736
Remove extraneous data update call when changing tabs
2 parents 57b703c + 00aea5c commit e0fd91d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

web/src/views/SubmissionPortal/HarmonizerView.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,6 @@ export default defineComponent({
448448
return;
449449
}
450450
451-
onDataChange();
452-
453451
await validate();
454452
455453
// When changing templates we may need to populate the common columns
@@ -781,7 +779,7 @@ export default defineComponent({
781779
<v-tab>
782780
<v-badge
783781
:content="validationTotalCounts[templateKey] || '!'"
784-
:value="validationTotalCounts[templateKey] > 0 || !tabsValidated[templateKey] || status !== submissionStatus.InProgress"
782+
:value="validationTotalCounts[templateKey] > 0 || !tabsValidated[templateKey]"
785783
:color="validationTotalCounts[templateKey] > 0 ? 'error' : 'warning'"
786784
>
787785
{{ HARMONIZER_TEMPLATES[templateKey].displayName }}

web/src/views/SubmissionPortal/store/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ async function incrementalSaveRecord(id: string): Promise<number | void> {
276276

277277
if (hasChanged.value) {
278278
const response = await api.updateRecord(id, payload, undefined, permissions);
279+
hasChanged.value = 0;
279280
return response.httpStatus;
280281
}
281282
hasChanged.value = 0;

0 commit comments

Comments
 (0)