Skip to content

Commit

Permalink
fix: correct date validation for disabled fields (#7240)
Browse files Browse the repository at this point in the history
* fix: correct date validation for disabled fields

* fix: removing console logs
  • Loading branch information
kathleenkhy authored Apr 3, 2024
1 parent 6fc3153 commit d30f62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/templates/Field/Date/DateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const DateField = ({
<Controller
control={control}
name={schema._id}
rules={validationRules}
rules={disableRequiredValidation ? undefined : validationRules}
defaultValue=""
render={({ field: { value, onChange, ...field } }) => (
<DatePicker
Expand Down

0 comments on commit d30f62e

Please sign in to comment.