Skip to content

Commit

Permalink
Fix delete date time
Browse files Browse the repository at this point in the history
Fixes #97
  • Loading branch information
jmattheis committed Jul 22, 2021
1 parent 4ca2fd0 commit fa3bf2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/common/DateTimeSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const DateTimeSelector: React.FC<DateTimeSelectorProps> = React.memo(
margin="none"
value={uglyConvertToLocalTime(selectedDate).format()}
onChange={(date: moment.Moment) => {
if (!date.isValid()) {
if (!date || !date.isValid()) {
return;
}

Expand Down

0 comments on commit fa3bf2c

Please sign in to comment.