Skip to content

Commit

Permalink
Merge pull request #302 from noharm-ai/develop
Browse files Browse the repository at this point in the history
v3.0.20
  • Loading branch information
marceloarocha authored Jan 28, 2024
2 parents e01f444 + 859d5b3 commit 1db2df2
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 643 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "noharm-app",
"version": "3.0.19",
"version": "3.0.20",
"private": true,
"dependencies": {
"@ckeditor/ckeditor5-build-classic": "^35.0.1",
Expand Down
6 changes: 4 additions & 2 deletions src/components/Forms/CustomForm/Field.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ export default function Field({ question, values, setFieldValue }) {
<DatePicker
format="DD/MM/YYYY"
disabled={question.disabled}
value={values[question.id] ? dayjs(values[question.id]) : null}
value={
values[question.id] ? dayjs(values[question.id], "DD/MM/YYYY") : null
}
onChange={(value) =>
setFieldValue(question.id, value.format("DD/MM/YYYY"))
setFieldValue(question.id, value ? value.format("DD/MM/YYYY") : null)
}
popupClassName="noArrow"
allowClear
Expand Down
Loading

0 comments on commit 1db2df2

Please sign in to comment.