Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
reset ownershipOptions on init (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlf0dev committed Nov 24, 2021
1 parent e1c6e49 commit 340a79b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions angular/src/components/add-edit.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ export class AddEditComponent implements OnInit {
}

async init() {
if (this.ownershipOptions.length) {
this.ownershipOptions = [];
}
if (await this.policyService.policyAppliesToUser(PolicyType.PersonalOwnership)) {
this.allowPersonal = false;
} else {
Expand Down

0 comments on commit 340a79b

Please sign in to comment.