This is an automated email from the ASF dual-hosted git repository.

dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new e8f10f78 Fix handleApiCancel resetting tagForm instead of apiForm 
(#662)
e8f10f78 is described below

commit e8f10f7837b7e24683ec51eca59f3ac7f581b17b
Author: Anay Parwal <[email protected]>
AuthorDate: Fri Sep 25 00:26:01 2026 -0400

    Fix handleApiCancel resetting tagForm instead of apiForm (#662)
    
    handleApiCancel was copy-pasted from handleTagCancel and called
    tagForm.resetFields() instead of apiForm.resetFields(), so cancelling
    the API modal reset the wrong form.
    
    Closes #646
---
 src/routes/Document/components/SearchApi.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/routes/Document/components/SearchApi.js 
b/src/routes/Document/components/SearchApi.js
index e51e2c8c..b12d7e35 100644
--- a/src/routes/Document/components/SearchApi.js
+++ b/src/routes/Document/components/SearchApi.js
@@ -217,7 +217,7 @@ const SearchApi = React.forwardRef((props, ref) => {
 
   const handleApiCancel = () => {
     setOpenApi(false);
-    tagForm.resetFields();
+    apiForm.resetFields();
   };
 
   const handleApiOk = (data) => {

Reply via email to