Skip to content

Commit

Permalink
Merge pull request #2501 from cloudfoundry-incubator/fix-leak
Browse files Browse the repository at this point in the history
Provide Create Service Instance its own CfOrgSpaceDataService instance
  • Loading branch information
nwmac authored Jun 22, 2018
2 parents fb11e43 + b5bcd59 commit 2e2ddb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ import { CsiModeService } from '../csi-mode.service';
CreateServiceInstanceHelperServiceFactory,
TitleCasePipe,
CsiGuidsService,
CsiModeService
CsiModeService,
CfOrgSpaceDataService
]
})
export class AddServiceInstanceComponent implements OnDestroy, AfterContentInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ export class SelectPlanStepComponent implements OnDestroy {

servicePlans: ServicePlan[];

servicePlanVisibilitySub: Subscription;
changeSubscription: Subscription;
validate = new BehaviorSubject<boolean>(false);
subscription: Subscription;
stepperForm: FormGroup;
Expand Down Expand Up @@ -170,8 +168,6 @@ export class SelectPlanStepComponent implements OnDestroy {

ngOnDestroy(): void {
safeUnsubscribe(this.subscription);
safeUnsubscribe(this.changeSubscription);
safeUnsubscribe(this.servicePlanVisibilitySub);
}

getPlanAccessibility = (servicePlan: APIResource<IServicePlan>): Observable<CardStatus> => {
Expand Down

0 comments on commit 2e2ddb0

Please sign in to comment.