Skip to content

Commit

Permalink
Merge pull request #410 from Consdata/IKC-427
Browse files Browse the repository at this point in the history
IKC-427 Create cluster validation
  • Loading branch information
pbelke authored Nov 15, 2024
2 parents ea20876 + 0c1d973 commit 968a35c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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};
};
}
}

0 comments on commit 968a35c

Please sign in to comment.