From 542cc25231ae96c33a4a64a0b0394c668a95f7a1 Mon Sep 17 00:00:00 2001 From: Guan <821143943@qq.com> Date: Wed, 3 Apr 2024 22:02:30 +0800 Subject: [PATCH] fix: unable to submit in operation set editor --- .../operation-set/OperationSetEditor.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/operation-set/OperationSetEditor.tsx b/src/components/operation-set/OperationSetEditor.tsx index abe26e0..4a79b38 100644 --- a/src/components/operation-set/OperationSetEditor.tsx +++ b/src/components/operation-set/OperationSetEditor.tsx @@ -180,7 +180,7 @@ function OperationSetForm({ operationSet, onSubmit }: FormProps) { control, handleSubmit, setError, - formState: { errors, isDirty, isSubmitting }, + formState: { errors, isSubmitting }, } = useForm({ defaultValues: operationSet || { name: '', @@ -220,7 +220,7 @@ function OperationSetForm({ operationSet, onSubmit }: FormProps) {
@@ -302,7 +302,7 @@ function OperationSetForm({ operationSet, onSubmit }: FormProps) { )}