Skip to content

Commit

Permalink
fix: date-time timestamp should not be omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
AshotN committed Jul 31, 2024
1 parent f39d116 commit 0d65eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/components/property-type/datetime/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Edit: React.FC<EditPropertyProps> = (props) => {
value={value}
disabled={property.isDisabled}
onChange={(date) => {
onChange(property.path, date?.substring(0, 10) ?? date)
onChange(property.path, property.type === 'date' ? date?.substring(0, 10) ?? date : date)
}}
propertyType={property.type}
{...property.props}
Expand Down

0 comments on commit 0d65eea

Please sign in to comment.