handleSubmit = (values) => {
values = {...values, someField : values.someField !== undefined ? values.someField : ""};
return updateById(this.props.user.id, values)
.then(res => {
if (res.error)
throw new SubmissionError({_error:res.error,...res.errors});
return res;
});
}
initialValues={{
someField : ""
}}