Skip to content

Commit

Permalink
fix tsstrict error
Browse files Browse the repository at this point in the history
  • Loading branch information
BTreston committed Jan 16, 2025
1 parent 5ebcf0e commit 3913999
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,22 @@ export class AllApplicationsComponent implements OnInit {
const userId = await firstValueFrom(getUserId(this.accountService.activeAccount$));

Check warning on line 80 in bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts

View check run for this annotation

Codecov / codecov/patch

bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts#L80

Added line #L80 was not covered by tests

if (organizationId) {
const organization = this.organizationService
const organization$ = this.organizationService

Check warning on line 83 in bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts

View check run for this annotation

Codecov / codecov/patch

bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts#L83

Added line #L83 was not covered by tests
.organizations$(userId)
.pipe(getOrganizationById(organizationId));

const organization = await firstValueFrom(organization$);

Check warning on line 87 in bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts

View check run for this annotation

Codecov / codecov/patch

bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts#L87

Added line #L87 was not covered by tests

if (organization) {
this.organization = await firstValueFrom(organization);
this.organization = organization;

Check warning on line 90 in bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts

View check run for this annotation

Codecov / codecov/patch

bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts#L90

Added line #L90 was not covered by tests
} else {
throw new Error("No organization found.");

Check warning on line 92 in bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts

View check run for this annotation

Codecov / codecov/patch

bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts#L92

Added line #L92 was not covered by tests
}

combineLatest([

Check warning on line 95 in bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts

View check run for this annotation

Codecov / codecov/patch

bitwarden_license/bit-web/src/app/tools/access-intelligence/all-applications.component.ts#L95

Added line #L95 was not covered by tests
this.dataService.applications$,
this.criticalAppsService.getAppsListForOrg(organizationId),
organization,
organization$,
])
.pipe(
takeUntilDestroyed(this.destroyRef),
Expand Down

0 comments on commit 3913999

Please sign in to comment.