From 0f1db861d9e0b16eea45192c79c7a1b80d797762 Mon Sep 17 00:00:00 2001 From: ArtemDzhereleiko Date: Thu, 8 Jan 2026 18:27:45 +0200 Subject: [PATCH] UI: set validator to default --- ui-ngx/src/app/shared/components/time-unit-input.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui-ngx/src/app/shared/components/time-unit-input.component.ts b/ui-ngx/src/app/shared/components/time-unit-input.component.ts index 67f2cc611c..95e5a3f8e1 100644 --- a/ui-ngx/src/app/shared/components/time-unit-input.component.ts +++ b/ui-ngx/src/app/shared/components/time-unit-input.component.ts @@ -205,9 +205,7 @@ export class TimeUnitInputComponent implements ControlValueAccessor, Validator, } } if (propName === 'minTime') { - if (isDefinedAndNotNull(this.minTime)) { - this.minValueValidator = this.minValue; - } + this.minValueValidator = isDefinedAndNotNull(this.minTime) ? this.minValue : 0; } } }