Skip to content

Commit

Permalink
Merge pull request #2060 from bcgov/hotfix/ALCS-2474-fix-single-date-…
Browse files Browse the repository at this point in the history
…updates

ALCS-2474 Fix single date updates
  • Loading branch information
fbarreta authored Jan 17, 2025
2 parents 13d4bf2 + 2454750 commit ccb4b55
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ export class DecisionConditionComponent implements OnInit, OnChanges {
const singleDateDto: ApplicationDecisionConditionDateDto = {};

if (this.singleDate.value) {
if (this.data.dates && this.data.dates.length > 0) {
singleDateDto.uuid = this.data.dates[0].uuid;
singleDateDto.completedDate = this.data.dates[0].completedDate;
singleDateDto.comment = this.data.dates[0].comment;
}
singleDateDto.date = this.singleDate.value.toDate().getTime();
}

Expand Down

0 comments on commit ccb4b55

Please sign in to comment.