Skip to content

Commit

Permalink
Merge pull request #79 from YangFong/fix-handleChange
Browse files Browse the repository at this point in the history
fix: 教育背景起始时间更新
  • Loading branch information
visiky authored Mar 14, 2023
2 parents 3c343c4 + 205947a commit eb07d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FormCreator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const FormCreator: React.FC<Props> = props => {
}, [props.value]);

const handleChange = (values: any) => {
if ('edu_time' in values) {
if ('edu_time' in values && typeof values.edu_time === 'string') {
values.edu_time = values.edu_time.split(',');
}
props.onChange(values);
Expand Down

0 comments on commit eb07d88

Please sign in to comment.