Skip to content

Commit

Permalink
Fix [Feature Vectors] Unify the conditions for the 'Tag' field (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taras-Hlukhovetskyi authored Jul 24, 2024
1 parent 5e1ddde commit e643587
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/utils/form.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ export const parseObjectToKeyValue = (object = {}) => {
}
})
}

export const isSubmitDisabled = (formState) => {
return formState.submitting || (formState.invalid && formState.submitFailed)
}

0 comments on commit e643587

Please sign in to comment.