From 32e35f27d73a31a8aabf2c40ac32184cd687efd1 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Mon, 3 Nov 2025 13:48:42 +0200 Subject: [PATCH] UI: Fix email validator to allow empty values --- ui-ngx/src/app/core/utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui-ngx/src/app/core/utils.ts b/ui-ngx/src/app/core/utils.ts index fe974f54a8..e0fadd768a 100644 --- a/ui-ngx/src/app/core/utils.ts +++ b/ui-ngx/src/app/core/utils.ts @@ -992,6 +992,9 @@ export const trimDefaultValues = (input: Record, defaults: Record { + if (isUndefinedOrNull(control.value) || (typeof control.value === 'string' && control.value.length === 0)) { + return null; + } return emailRegex.test(control.value) ? null : {email: true}; };