diff --git a/kouncil-frontend/libs/feat-clusters/src/lib/cluster-form/cluster-form-util.ts b/kouncil-frontend/libs/feat-clusters/src/lib/cluster-form/cluster-form-util.ts index 66943f86..e3d8983c 100644 --- a/kouncil-frontend/libs/feat-clusters/src/lib/cluster-form/cluster-form-util.ts +++ b/kouncil-frontend/libs/feat-clusters/src/lib/cluster-form/cluster-form-util.ts @@ -25,7 +25,7 @@ export class ClusterFormUtil { public static noWhitespaces(): ValidatorFn { return (control: AbstractControl): ValidationErrors | null => { - return control.value?.length === 0 || (control.value || '').trim().length ? null : {incorrectValue: true}; + return control.value === null || control.value?.length === 0 || (control.value || '').trim().length ? null : {incorrectValue: true}; }; } }