mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 19:53:43 +00:00
fix ts strict errors (#12355)
This commit is contained in:
@@ -53,8 +53,8 @@ const DisallowedPlanTypes = [
|
||||
],
|
||||
})
|
||||
export class vNextClientsComponent {
|
||||
providerId: string;
|
||||
addableOrganizations: Organization[];
|
||||
providerId: string = "";
|
||||
addableOrganizations: Organization[] = [];
|
||||
loading = true;
|
||||
manageOrganizations = false;
|
||||
showAddExisting = false;
|
||||
@@ -79,8 +79,8 @@ export class vNextClientsComponent {
|
||||
this.searchControl.setValue(queryParams.search);
|
||||
});
|
||||
|
||||
this.activatedRoute.parent.params
|
||||
.pipe(
|
||||
this.activatedRoute.parent?.params
|
||||
?.pipe(
|
||||
switchMap((params) => {
|
||||
this.providerId = params.providerId;
|
||||
return this.providerService.get$(this.providerId).pipe(
|
||||
@@ -125,7 +125,7 @@ export class vNextClientsComponent {
|
||||
await this.webProviderService.detachOrganization(this.providerId, organization.id);
|
||||
this.toastService.showToast({
|
||||
variant: "success",
|
||||
title: null,
|
||||
title: "",
|
||||
message: this.i18nService.t("detachedOrganization", organization.organizationName),
|
||||
});
|
||||
await this.load();
|
||||
|
||||
Reference in New Issue
Block a user