diff --git a/projects/editor/src/app/unit-view/page-view/properties-panel/element-properties.component.html b/projects/editor/src/app/unit-view/page-view/properties-panel/element-properties.component.html
index ed5260b0f8db8ecf621c7512a873aebeda1592e8..9dcdcb04f41f938bf66751facee99dad0a897217 100644
--- a/projects/editor/src/app/unit-view/page-view/properties-panel/element-properties.component.html
+++ b/projects/editor/src/app/unit-view/page-view/properties-panel/element-properties.component.html
@@ -336,7 +336,7 @@
           {{'propertiesPanel.lineColoring' | translate }}
         </mat-checkbox>
 
-        <mat-form-field *ngIf="combinedProperties.lineColoringColor"
+        <mat-form-field *ngIf="combinedProperties.lineColoring && combinedProperties.lineColoringColor"
                         appearance="fill" class="mdInput textsingleline">
           <mat-label>{{'propertiesPanel.lineColoringColor' | translate }}</mat-label>
           <input matInput type="color" [value]="combinedProperties.lineColoringColor"