diff --git a/projects/common/ui-elements/slider/slider.component.ts b/projects/common/ui-elements/slider/slider.component.ts
index 6132da496f396c52bc2fe96405ff4ea9594cd78a..0a25f5dcc78c62401ee50339134fe3acab89fce5 100644
--- a/projects/common/ui-elements/slider/slider.component.ts
+++ b/projects/common/ui-elements/slider/slider.component.ts
@@ -71,7 +71,8 @@ import { FormElementComponent } from '../../directives/form-element-component.di
         <div class="arrow-line"></div>
         <div class="arrow-head"></div>
       </div>
-      <div [style.display]="'flex'"
+      <div *ngIf="valueMax && valueMin"
+           [style.display]="'flex'"
            [style.flex-direction]="'column'"
            [style.height.%]="100"
            [style.margin-right.px]="elementModel.barStyle ? valueMax.offsetWidth/2 - 8 : valueMax.offsetWidth"