Skip to content

Commit ccb4b55

Browse files
authored
Merge pull request #2060 from bcgov/hotfix/ALCS-2474-fix-single-date-updates
ALCS-2474 Fix single date updates
2 parents 13d4bf2 + 2454750 commit ccb4b55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

alcs-frontend/src/app/features/application/decision/decision-v2/decision-input/decision-conditions/decision-condition/decision-condition.component.ts

+5
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ export class DecisionConditionComponent implements OnInit, OnChanges {
120120
const singleDateDto: ApplicationDecisionConditionDateDto = {};
121121

122122
if (this.singleDate.value) {
123+
if (this.data.dates && this.data.dates.length > 0) {
124+
singleDateDto.uuid = this.data.dates[0].uuid;
125+
singleDateDto.completedDate = this.data.dates[0].completedDate;
126+
singleDateDto.comment = this.data.dates[0].comment;
127+
}
123128
singleDateDto.date = this.singleDate.value.toDate().getTime();
124129
}
125130

0 commit comments

Comments
 (0)