Skip to content

Commit 2a26b18

Browse files
committed
Adding missing fieldValues[0]
1 parent 52d2373 commit 2a26b18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eform-client/src/app/modules/cases/components/case-edit-switch/case-edit-switch.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ng-container *ngFor="let dataItem of dataItemList; let i = index">
33
<div class="card z-depth-2 mb-3" style="width: 100%" *ngIf="dataItem.fieldType != 'SaveButton'">
44
<div class="card-header"
5-
[ngStyle]="{'background-color': dataItem.color ? '#' + dataItem.color : ''}"
5+
[ngStyle]="{'background-color': dataItem.fieldValues[0].color ? '#' + dataItem.fieldValues[0].color : ''}"
66
*ngIf="dataItem.fieldType != 'FieldContainer' && dataItem.fieldType != 'SaveButton'">
77
{{dataItem.label}}
88
</div>

0 commit comments

Comments
 (0)