|
@@ -17,7 +17,7 @@ const validate = object({
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export function useFormState() {
|
|
export function useFormState() {
|
|
|
- const {control, clearErrors, reset, handleSubmit} = useForm<FormState>({
|
|
|
|
|
|
|
+ const {control, handleSubmit} = useForm<FormState>({
|
|
|
defaultValues: {
|
|
defaultValues: {
|
|
|
materialCode: '',
|
|
materialCode: '',
|
|
|
operationNum: 0,
|
|
operationNum: 0,
|