Commit 610634e1 by Finley Ge Committed by GitHub

fix: mcp tool node hide the version selection (#5547)

parent 4e194d64
...@@ -117,7 +117,7 @@ const NodeCard = (props: Props) => { ...@@ -117,7 +117,7 @@ const NodeCard = (props: Props) => {
const isAppNode = node && AppNodeFlowNodeTypeMap[node?.flowNodeType]; const isAppNode = node && AppNodeFlowNodeTypeMap[node?.flowNodeType];
const showVersion = useMemo(() => { const showVersion = useMemo(() => {
// 1. MCP tool set do not have version // 1. MCP tool set do not have version
if (isAppNode && node.toolConfig?.mcpToolSet) return false; if (isAppNode && (node.toolConfig?.mcpToolSet || node.toolConfig?.mcpTool)) return false;
// 2. Team app/System commercial plugin // 2. Team app/System commercial plugin
if (isAppNode && node?.pluginId && !node?.pluginData?.error) return true; if (isAppNode && node?.pluginId && !node?.pluginData?.error) return true;
// 3. System tool // 3. System tool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment