We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b53db commit 53e2f54Copy full SHA for 53e2f54
src/Pages/GlobalConfigurations/BuildInfra/ProfileForm.tsx
@@ -28,7 +28,10 @@ const ProfileForm: FunctionComponent = () => {
28
// Would use this to disable the save button, if all keys in profileInputErrors are null or undefined, then there are no errors
29
// Empty string means isRequired but no need to show error below input field
30
const formErrorCount = useMemo(
31
- () => Object.keys(profileInputErrors).filter((item) => !profileInputErrors[item]).length,
+ () =>
32
+ Object.keys(profileInputErrors).filter(
33
+ (item) => profileInputErrors[item] !== null && profileInputErrors[item] !== undefined,
34
+ ).length,
35
[profileInputErrors],
36
)
37
0 commit comments