mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-13 22:56:28 +00:00
fix: mcp tool node hide the version selection (#5547)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user