Skip to content

Commit

Permalink
PM-15070 removed onDestroy
Browse files Browse the repository at this point in the history
  • Loading branch information
voommen-livefront committed Jan 15, 2025
1 parent cc4f907 commit 3ab4ae3
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, DestroyRef, inject, OnDestroy, OnInit } from "@angular/core";
import { Component, DestroyRef, inject, OnInit } from "@angular/core";
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
import { FormControl } from "@angular/forms";
import { ActivatedRoute } from "@angular/router";
Expand Down Expand Up @@ -51,7 +51,7 @@ import { ApplicationsLoadingComponent } from "./risk-insights-loading.component"
SharedModule,
],
})
export class AllApplicationsComponent implements OnInit, OnDestroy {
export class AllApplicationsComponent implements OnInit {
protected dataSource = new TableDataSource<ApplicationHealthReportDetailWithCriticalFlag>();
protected selectedUrls: Set<string> = new Set<string>();
protected searchControl = new FormControl("", { nonNullable: true });
Expand Down Expand Up @@ -97,10 +97,8 @@ export class AllApplicationsComponent implements OnInit, OnDestroy {
this.organization = organization as Organization;
}
});
}

ngOnDestroy(): void {
this.subscription?.unsubscribe();
this.isLoading$ = this.dataService.isLoading$;
}

constructor(
Expand Down

0 comments on commit 3ab4ae3

Please sign in to comment.