Skip to content

Commit

Permalink
[BST-220] fix: datetime fields are sending updates on record update e…
Browse files Browse the repository at this point in the history
…ven when not needed (#218)
  • Loading branch information
mihaimdm22 authored Nov 10, 2021
1 parent 24f8ab0 commit 4208ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fields/DateTime/Edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const Edit = ({
dbValue = parsedValue.toUTC();
}

setValue(name, dbValue, {
setValue(name, dbValue.toString(), {
shouldValidate: true,
shouldDirty: true,
shouldTouch: true,
Expand Down

0 comments on commit 4208ffa

Please sign in to comment.