Skip to content

Commit 791e844

Browse files
authored
fix: mcpserver delete error (#543)
1 parent ece3c41 commit 791e844

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/routes/Plugin/McpServer/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,17 +715,16 @@ export default class McpServer extends Component {
715715
};
716716

717717
deleteSelector = (record) => {
718-
const { dispatch, plugins, currentNamespaceId } = this.props;
719-
const { selectorPage, selectorPageSize, pluginName } = this.state;
720-
const pluginId = this.getPluginId(plugins, pluginName);
718+
const { dispatch, currentNamespaceId } = this.props;
719+
const { selectorPage, selectorPageSize } = this.state;
721720
dispatch({
722721
type: "common/deleteSelector",
723722
payload: {
724723
list: [record.id],
725724
namespaceId: currentNamespaceId,
726725
},
727726
fetchValue: {
728-
pluginId,
727+
pluginId: record?.pluginId,
729728
currentPage: selectorPage,
730729
pageSize: selectorPageSize,
731730
namespaceId: currentNamespaceId,

0 commit comments

Comments
 (0)