refactor(ui): update general

This commit is contained in:
robin 2022-11-30 10:12:56 +08:00
parent 8faafda086
commit 1a317d6dce
1 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,9 @@ const General: FC = () => {
},
},
};
const [formData, setFormData] = useState(initFormData(schema));
const [formData, setFormData] = useState<Type.FormDataType>(
initFormData(schema),
);
const onSubmit = (evt) => {
evt.preventDefault();