Skip to content

Commit

Permalink
Merge pull request #1750 from bcgov/hotfix/ALCS-2022-2
Browse files Browse the repository at this point in the history
Fix corporate summary not being discarded after changing in edit
  • Loading branch information
Abradat authored Jun 6, 2024
2 parents 7318a15 + 67e2df5 commit 2b22432
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ export class OwnerDialogComponent {
let document;
if (this.pendingFile) {
document = await this.uploadPendingFile(this.pendingFile);
} else {
document = this.data.existingOwner?.corporateSummary;
} else {
document = this.type.value === OWNER_TYPE.ORGANIZATION ? this.data.existingOwner?.corporateSummary : null;
}

const orgName = this.type.value === OWNER_TYPE.ORGANIZATION ? this.organizationName.getRawValue() : null;
Expand Down

0 comments on commit 2b22432

Please sign in to comment.