Skip to content

Commit

Permalink
IKC-427 Create cluster validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Belke authored and Piotr Belke committed Nov 15, 2024
1 parent 0434346 commit 0c1d973
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 0c1d973

Please sign in to comment.