From e1bba2ecaa6443c4f185b245a3ea0454b79b432d Mon Sep 17 00:00:00 2001 From: Felipe Barreta Date: Wed, 11 Dec 2024 15:21:26 -0800 Subject: [PATCH] ALCS-1858 Remove single date patch --- .../decision-condition/decision-condition.component.ts | 4 ---- .../decision-condition/decision-condition.component.ts | 4 ---- 2 files changed, 8 deletions(-) diff --git a/alcs-frontend/src/app/features/application/decision/decision-v2/decision-input/decision-conditions/decision-condition/decision-condition.component.ts b/alcs-frontend/src/app/features/application/decision/decision-v2/decision-input/decision-conditions/decision-condition/decision-condition.component.ts index 75efb8752a..1dd634cf28 100644 --- a/alcs-frontend/src/app/features/application/decision/decision-v2/decision-input/decision-conditions/decision-condition/decision-condition.component.ts +++ b/alcs-frontend/src/app/features/application/decision/decision-v2/decision-input/decision-conditions/decision-condition/decision-condition.component.ts @@ -82,10 +82,6 @@ export class DecisionConditionComponent implements OnInit, OnChanges { description: this.data.description ?? null, }); - if (this.showSingleDateField && this.dates.length > 0 && this.dates[0].date) { - this.form.patchValue({ singleDate: moment(this.dates[0].date) }); - } - this.form.valueChanges.subscribe(this.emitChanges.bind(this)); } diff --git a/alcs-frontend/src/app/features/notice-of-intent/decision/decision-v2/decision-input/decision-conditions/decision-condition/decision-condition.component.ts b/alcs-frontend/src/app/features/notice-of-intent/decision/decision-v2/decision-input/decision-conditions/decision-condition/decision-condition.component.ts index 0737a444b5..c84b559924 100644 --- a/alcs-frontend/src/app/features/notice-of-intent/decision/decision-v2/decision-input/decision-conditions/decision-condition/decision-condition.component.ts +++ b/alcs-frontend/src/app/features/notice-of-intent/decision/decision-v2/decision-input/decision-conditions/decision-condition/decision-condition.component.ts @@ -82,10 +82,6 @@ export class DecisionConditionComponent implements OnInit, OnChanges { description: this.data.description ?? null, }); - if (this.showSingleDateField && this.dates.length > 0 && this.dates[0].date) { - this.form.patchValue({ singleDate: moment(this.dates[0].date) }); - } - this.form.valueChanges.subscribe(this.emitChanges.bind(this)); }