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

This commit is contained in:
Finley Ge
2025-08-27 10:52:32 +08:00
committed by GitHub
parent 4e194d64e1
commit 610634e1a1

View File

@@ -117,7 +117,7 @@ const NodeCard = (props: Props) => {
const isAppNode = node && AppNodeFlowNodeTypeMap[node?.flowNodeType];
const showVersion = useMemo(() => {
// 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
if (isAppNode && node?.pluginId && !node?.pluginData?.error) return true;
// 3. System tool