Skip to content

Commit

Permalink
Ensured failed validation links is reset to empty before saving to pr…
Browse files Browse the repository at this point in the history
…event previous failed validations from duplicating
  • Loading branch information
andrewbrazzatti committed Dec 6, 2024
1 parent 082ad87 commit b4575b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions angular-legacy/dmp/app/dmp-form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export class DmpFormComponent extends LoadableComponent {
console.log("Saving the following values:");
console.log(this.payLoad);
this.needsSave = false;
this.failedValidationLinks = [];
if (_.isEmpty(this.oid)) {
return this.RecordsService.create(this.payLoad, this.recordType, targetStep).flatMap((res:any)=>{
this.clearSaving();
Expand Down

0 comments on commit b4575b1

Please sign in to comment.