From c22400c49a13a885653876abf1f3a9ac9bf60f5e Mon Sep 17 00:00:00 2001 From: Edward Guan Date: Tue, 11 Oct 2022 10:33:50 +0800 Subject: [PATCH] fix: change work_time prop to list when changed, close#69 --- src/components/FormCreator/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/FormCreator/index.tsx b/src/components/FormCreator/index.tsx index 5ed2997..9a1b12f 100644 --- a/src/components/FormCreator/index.tsx +++ b/src/components/FormCreator/index.tsx @@ -62,6 +62,9 @@ export const FormCreator: React.FC = props => { if ('edu_time' in values) { values.edu_time = values.edu_time.split(','); } + if ('work_time' in values) { + values.work_time = values.work_time.split(','); + } props.onChange(values); }; const formProps = {