Skip to content

Commit

Permalink
Merge pull request #1288 from microbiomedata/issue-736
Browse files Browse the repository at this point in the history
Remove extraneous data update call when changing tabs
  • Loading branch information
pkalita-lbl authored Jun 25, 2024
2 parents 57b703c + 00aea5c commit e0fd91d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions web/src/views/SubmissionPortal/HarmonizerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,6 @@ export default defineComponent({
return;
}
onDataChange();
await validate();
// When changing templates we may need to populate the common columns
Expand Down Expand Up @@ -781,7 +779,7 @@ export default defineComponent({
<v-tab>
<v-badge
:content="validationTotalCounts[templateKey] || '!'"
:value="validationTotalCounts[templateKey] > 0 || !tabsValidated[templateKey] || status !== submissionStatus.InProgress"
:value="validationTotalCounts[templateKey] > 0 || !tabsValidated[templateKey]"
:color="validationTotalCounts[templateKey] > 0 ? 'error' : 'warning'"
>
{{ HARMONIZER_TEMPLATES[templateKey].displayName }}
Expand Down
1 change: 1 addition & 0 deletions web/src/views/SubmissionPortal/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ async function incrementalSaveRecord(id: string): Promise<number | void> {

if (hasChanged.value) {
const response = await api.updateRecord(id, payload, undefined, permissions);
hasChanged.value = 0;
return response.httpStatus;
}
hasChanged.value = 0;
Expand Down

0 comments on commit e0fd91d

Please sign in to comment.