Skip to content

Commit

Permalink
Merge pull request #76 from nooop3/fix-work-time-prop
Browse files Browse the repository at this point in the history
fix: change work_time prop to list when changed, close#69
  • Loading branch information
visiky authored Mar 14, 2023
2 parents eb07d88 + c22400c commit f92c2b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/FormCreator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export const FormCreator: React.FC<Props> = props => {
if ('edu_time' in values && typeof values.edu_time === 'string') {
values.edu_time = values.edu_time.split(',');
}
if ('work_time' in values) {
values.work_time = values.work_time.split(',');
}
props.onChange(values);
};
const formProps = {
Expand Down

0 comments on commit f92c2b4

Please sign in to comment.