Commit e028cf2a authored by TJHeeringa's avatar TJHeeringa

Fix crash on null of Date on Profile

parent 1ad7983b
......@@ -27,7 +27,7 @@ const DateTimeField = ({name, value, onChange, apiFormat, ...remaining_props}) =
});
const handleChange = (datetime_util_object) => {
onChange(datetime_util_object.format(apiFormat));
onChange(datetime_util_object === null ? null : datetime_util_object.format(apiFormat));
};
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment