@@ -23,7 +23,7 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
23
23
< app-no-data *ngIf ="condition.securityAmount === null || condition.securityAmount === undefined "> </ app-no-data >
24
24
</ div >
25
25
</ div >
26
- < div class ="dates-container " *ngIf ="condition. dates !== undefined && condition.type?.isDateChecked ">
26
+ < div class ="dates-container " *ngIf ="dates !== undefined && condition.type?.isDateChecked ">
27
27
< ng-container *ngIf ="showSingleDateField; else showMultipleDateTable ">
28
28
< ng-container *ngIf ="singleDateLabel === 'Due Date'; else showEndDateContainer ">
29
29
< div class ="single-table ">
@@ -44,20 +44,20 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
44
44
< div class ="single-table-row ">
45
45
< div class ="single-column single-due ">
46
46
< 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) "
49
49
> </ app-inline-datepicker >
50
50
</ div >
51
51
< div class ="single-column single-completed ">
52
52
< 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) "
55
55
> </ app-inline-datepicker >
56
56
</ div >
57
57
< div class ="single-column single-comment ">
58
58
< 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) "
61
61
> </ app-inline-textarea >
62
62
</ div >
63
63
</ div >
@@ -77,8 +77,8 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
77
77
< div class ="single-table-row ">
78
78
< div class ="single-column single-end ">
79
79
< 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) "
82
82
> </ app-inline-datepicker >
83
83
</ div >
84
84
</ div >
@@ -98,8 +98,8 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
98
98
< th mat-header-cell *matHeaderCellDef class ="multiple-due "> Due</ th >
99
99
< td mat-cell *matCellDef ="let element ">
100
100
< 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) "
103
103
> </ app-inline-datepicker >
104
104
</ td >
105
105
</ ng-container >
@@ -108,8 +108,8 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
108
108
< th mat-header-cell *matHeaderCellDef class ="multiple-completed "> Completed</ th >
109
109
< td mat-cell *matCellDef ="let element ">
110
110
< 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) "
113
113
> </ app-inline-datepicker >
114
114
</ td >
115
115
</ ng-container >
@@ -118,8 +118,8 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
118
118
< th mat-header-cell *matHeaderCellDef class ="multiple-comment "> Comment</ th >
119
119
< td mat-cell *matCellDef ="let element " class ="wrap-text ">
120
120
< 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) "
123
123
> </ app-inline-textarea >
124
124
</ td >
125
125
</ ng-container >
@@ -145,7 +145,7 @@ <h4 *ngIf="condition.type">{{ condition.type.label }}</h4>
145
145
146
146
< div
147
147
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) } "
149
149
>
150
150
< div class ="subheading2 "> Description</ div >
151
151
< span
0 commit comments