mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
[AC-1879] Add null check for collection view helpers (#7073)
* [AC-1879] Add null check for collection view helpers * [AC-1879] Add additional null check to organization-options.component.ts
This commit is contained in:
@@ -87,9 +87,9 @@ export class OrganizationOptionsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
allowEnrollmentChanges(org: OrganizationFilter): boolean {
|
||||
if (org.usePolicies && org.useResetPassword && org.hasPublicAndPrivateKeys) {
|
||||
if (org?.usePolicies && org?.useResetPassword && org?.hasPublicAndPrivateKeys) {
|
||||
if (this.resetPasswordPolicy != undefined && this.resetPasswordPolicy.enabled) {
|
||||
return !(org.resetPasswordEnrolled && this.resetPasswordPolicy.data.autoEnrollEnabled);
|
||||
return !(org?.resetPasswordEnrolled && this.resetPasswordPolicy.data.autoEnrollEnabled);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ export class OrganizationOptionsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
showSsoOptions(org: OrganizationFilter) {
|
||||
return org.useSso && org.identifier;
|
||||
return org?.useSso && org?.identifier;
|
||||
}
|
||||
|
||||
async unlinkSso(org: Organization) {
|
||||
|
||||
Reference in New Issue
Block a user