From 205947a98439f6402af802a7c6d45463ed1ad244 Mon Sep 17 00:00:00 2001 From: YangFong Date: Tue, 3 Jan 2023 20:21:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=95=99=E8=82=B2=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E8=B5=B7=E5=A7=8B=E6=97=B6=E9=97=B4=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #78 --- src/components/FormCreator/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FormCreator/index.tsx b/src/components/FormCreator/index.tsx index 5ed2997..7e34686 100644 --- a/src/components/FormCreator/index.tsx +++ b/src/components/FormCreator/index.tsx @@ -59,7 +59,7 @@ export const FormCreator: React.FC = 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);