Skip to content

Commit

Permalink
fix for label creation (Cannot create new labels #1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
olemp committed Apr 22, 2024
1 parent c58e132 commit 233d5ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ doc/
schema.gql
*.mp3
revision.txt
*.csv
1 change: 1 addition & 0 deletions client/components/FormControl/useFormControlValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { validateField } from './validateField'
* @returns True if the control should be validated, false otherwise.
*/
function shouldValidateField(field: FormInputControlBase) {
if(!field) return false
return !!field.name && (field.required || !!field.options?.validators)
}

Expand Down

0 comments on commit 233d5ea

Please sign in to comment.