From 8ad47399b846fc8bcd09b963da23be4e011f56e3 Mon Sep 17 00:00:00 2001 From: Adam Saghy Date: Thu, 8 Jan 2026 12:04:45 +0100 Subject: [PATCH] WEB-559: Do not call blindly "Is loan catch up running" API --- .../manage-jobs/cob-workflow/cob-workflow.component.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/app/system/manage-jobs/cob-workflow/cob-workflow.component.ts b/src/app/system/manage-jobs/cob-workflow/cob-workflow.component.ts index 44990e8a4..62e007be0 100644 --- a/src/app/system/manage-jobs/cob-workflow/cob-workflow.component.ts +++ b/src/app/system/manage-jobs/cob-workflow/cob-workflow.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnDestroy, OnInit, inject } from '@angular/core'; +import { Component, Input, OnDestroy, inject } from '@angular/core'; import { SystemService } from 'app/system/system.service'; import { environment } from '../../../../environments/environment'; import { FaIconComponent } from '@fortawesome/angular-fontawesome'; @@ -15,7 +15,7 @@ import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module'; LoanLockedComponent ] }) -export class CobWorkflowComponent implements OnInit, OnDestroy { +export class CobWorkflowComponent implements OnDestroy { private systemService = inject(SystemService); /** Wait time between API status calls 30 seg */ @@ -25,10 +25,6 @@ export class CobWorkflowComponent implements OnInit, OnDestroy { /** Timer to refetch COB Catch-Up status every 5 seconds */ timer: any; - ngOnInit(): void { - this.getCOBCatchUpStatus(); - } - ngOnDestroy() { clearTimeout(this.timer); }