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

liuhongyu 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 791e8447 fix: mcpserver delete error (#543)
791e8447 is described below

commit 791e84479a9bc87abe76292ed2b278810add818d
Author: Wweiei <45253632+wwe...@users.noreply.github.com>
AuthorDate: Thu Sep 4 09:44:02 2025 +0800

    fix: mcpserver delete error (#543)
---
 src/routes/Plugin/McpServer/index.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/routes/Plugin/McpServer/index.js 
b/src/routes/Plugin/McpServer/index.js
index 496f064c..660d9955 100755
--- a/src/routes/Plugin/McpServer/index.js
+++ b/src/routes/Plugin/McpServer/index.js
@@ -715,9 +715,8 @@ export default class McpServer extends Component {
   };
 
   deleteSelector = (record) => {
-    const { dispatch, plugins, currentNamespaceId } = this.props;
-    const { selectorPage, selectorPageSize, pluginName } = this.state;
-    const pluginId = this.getPluginId(plugins, pluginName);
+    const { dispatch, currentNamespaceId } = this.props;
+    const { selectorPage, selectorPageSize } = this.state;
     dispatch({
       type: "common/deleteSelector",
       payload: {
@@ -725,7 +724,7 @@ export default class McpServer extends Component {
         namespaceId: currentNamespaceId,
       },
       fetchValue: {
-        pluginId,
+        pluginId: record?.pluginId,
         currentPage: selectorPage,
         pageSize: selectorPageSize,
         namespaceId: currentNamespaceId,

Reply via email to