reset ownershipOptions on init (#563)

This commit is contained in:
Jake Fink 2021-11-24 09:01:38 -05:00 committed by GitHub
parent e1c6e4973a
commit 340a79bfe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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 {