File tree 2 files changed +26
-13
lines changed
2 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -171,10 +171,19 @@ class View extends Component<typeof ContactForm> {
171
171
<FieldContainer @ tag =' label' @ label =' Address Info' @ vertical ={{ true }} >
172
172
<@ fields.addressInfo />
173
173
</FieldContainer >
174
+ {{! TODO : If this @model.owner check doesn't exist, we get Encountered error rendering HTML for card: Cannot read properties of null (reading 'title') }}
175
+ {{! This applies to the embedded template }}
176
+ {{! This also occurs during indexing }}
177
+ {{#if @ model.owner }}
178
+ <FieldContainer
179
+ @ tag =' label'
180
+ @ label =' Contact Owner'
181
+ @ vertical ={{ true }}
182
+ >
183
+ <@ fields.owner />
184
+ </FieldContainer >
185
+ {{/if }}
174
186
175
- <FieldContainer @ tag =' label' @ label =' Contact Owner' @ vertical ={{ true }} >
176
- <@ fields.owner />
177
- </FieldContainer >
178
187
</div >
179
188
</div >
180
189
Original file line number Diff line number Diff line change @@ -454,9 +454,11 @@ class ViewSecForOpportunityForm extends Component<typeof OpportunityForm> {
454
454
<@ fields.accountName />
455
455
</FieldContainer >
456
456
457
- <FieldContainer @ tag =' label' @ label =' Company' @ vertical ={{ true }} >
458
- <@ fields.company />
459
- </FieldContainer >
457
+ {{#if @ model.company }}
458
+ <FieldContainer @ tag =' label' @ label =' Company' @ vertical ={{ true }} >
459
+ <@ fields.company />
460
+ </FieldContainer >
461
+ {{/if }}
460
462
461
463
<FieldContainer @ tag =' label' @ label =' Close Date' @ vertical ={{ true }} >
462
464
<@ fields.closeDate />
@@ -485,13 +487,15 @@ class ViewSecForOpportunityForm extends Component<typeof OpportunityForm> {
485
487
>
486
488
<@ fields.forecastCategory />
487
489
</FieldContainer >
488
- <FieldContainer
489
- @ tag =' label'
490
- @ label =' Opportunity Owner'
491
- @ vertical ={{ true }}
492
- >
493
- <@ fields.owner />
494
- </FieldContainer >
490
+ {{#if @ model.owner }}
491
+ <FieldContainer
492
+ @ tag =' label'
493
+ @ label =' Opportunity Owner'
494
+ @ vertical ={{ true }}
495
+ >
496
+ <@ fields.owner />
497
+ </FieldContainer >
498
+ {{/if }}
495
499
</div >
496
500
497
501
<style >
You can’t perform that action at this time.
0 commit comments