@@ -23,7 +23,7 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
2323 < app-no-data *ngIf ="condition.securityAmount === null || condition.securityAmount === undefined "> </ app-no-data >
2424 </ div >
2525</ div >
26- < div class ="dates-container " *ngIf ="condition. dates !== undefined && condition.type?.isDateChecked ">
26+ < div class ="dates-container " *ngIf ="dates !== undefined && condition.type?.isDateChecked ">
2727 < ng-container *ngIf ="showSingleDateField; else showMultipleDateTable ">
2828 < ng-container *ngIf ="singleDateLabel === 'Due Date'; else showEndDateContainer ">
2929 < div class ="single-table ">
@@ -44,20 +44,20 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
4444 < div class ="single-table-row ">
4545 < div class ="single-column single-due ">
4646 < app-inline-datepicker
47- [value] ="condition. dates[0].date ?? undefined "
48- (save) ="updateDate(condition. dates[0].uuid! , 'date', $event) "
47+ [value] ="dates[0]? .date ?? undefined "
48+ (save) ="updateDate(dates[0]? .uuid, 'date', $event) "
4949 > </ app-inline-datepicker >
5050 </ div >
5151 < div class ="single-column single-completed ">
5252 < app-inline-datepicker
53- [value] ="condition. dates[0].completedDate ?? undefined "
54- (save) ="updateDate(condition. dates[0].uuid! , 'completedDate', $event) "
53+ [value] ="dates[0]? .completedDate ?? undefined "
54+ (save) ="updateDate(dates[0]? .uuid, 'completedDate', $event) "
5555 > </ app-inline-datepicker >
5656 </ div >
5757 < div class ="single-column single-comment ">
5858 < app-inline-textarea
59- [value] ="condition. dates[0].comment ?? undefined "
60- (save) ="updateDate(condition. dates[0].uuid! , 'comment', $event) "
59+ [value] ="dates[0]? .comment ?? undefined "
60+ (save) ="updateDate(dates[0]? .uuid, 'comment', $event) "
6161 > </ app-inline-textarea >
6262 </ div >
6363 </ div >
@@ -77,8 +77,8 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
7777 < div class ="single-table-row ">
7878 < div class ="single-column single-end ">
7979 < app-inline-datepicker
80- [value] ="condition. dates[0].date ?? undefined "
81- (save) ="updateDate(condition. dates[0].uuid! , 'date', $event) "
80+ [value] ="dates[0]? .date ?? undefined "
81+ (save) ="updateDate(dates[0]? .uuid, 'date', $event) "
8282 > </ app-inline-datepicker >
8383 </ div >
8484 </ div >
@@ -98,8 +98,8 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
9898 < th mat-header-cell *matHeaderCellDef class ="multiple-due "> Due</ th >
9999 < td mat-cell *matCellDef ="let element ">
100100 < app-inline-datepicker
101- [value] ="condition. dates[element.index - 1].date ?? undefined "
102- (save) ="updateDate(condition. dates[element.index - 1].uuid! , 'date', $event) "
101+ [value] ="dates[element.index - 1]? .date ?? undefined "
102+ (save) ="updateDate(dates[element.index - 1]? .uuid, 'date', $event) "
103103 > </ app-inline-datepicker >
104104 </ td >
105105 </ ng-container >
@@ -108,8 +108,8 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
108108 < th mat-header-cell *matHeaderCellDef class ="multiple-completed "> Completed</ th >
109109 < td mat-cell *matCellDef ="let element ">
110110 < app-inline-datepicker
111- [value] ="condition. dates[element.index - 1].completedDate ?? undefined "
112- (save) ="updateDate(condition. dates[element.index - 1].uuid! , 'completedDate', $event) "
111+ [value] ="dates[element.index - 1]? .completedDate ?? undefined "
112+ (save) ="updateDate(dates[element.index - 1]? .uuid, 'completedDate', $event) "
113113 > </ app-inline-datepicker >
114114 </ td >
115115 </ ng-container >
@@ -118,8 +118,8 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
118118 < th mat-header-cell *matHeaderCellDef class ="multiple-comment "> Comment</ th >
119119 < td mat-cell *matCellDef ="let element " class ="wrap-text ">
120120 < app-inline-textarea
121- [value] ="condition. dates[element.index - 1].comment ?? undefined "
122- (save) ="updateDate(condition. dates[element.index - 1].uuid! , 'comment', $event) "
121+ [value] ="dates[element.index - 1]? .comment ?? undefined "
122+ (save) ="updateDate(dates[element.index - 1]? .uuid, 'comment', $event) "
123123 > </ app-inline-textarea >
124124 </ td >
125125 </ ng-container >
@@ -145,7 +145,7 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
145145
146146< div
147147 class ="full-width "
148- [ngClass] ="{ 'description-no-date-container': !(condition. dates !== undefined && condition.type.isDateChecked) } "
148+ [ngClass] ="{ 'description-no-date-container': !(dates !== undefined && condition.type? .isDateChecked) } "
149149>
150150 < div class ="subheading2 "> Description</ div >
151151 < span
0 commit comments