mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
filter tool type version & fix unpublished version (#4803)
This commit is contained in:
@@ -104,8 +104,8 @@ const NodeCard = (props: Props) => {
|
||||
const isAppNode = node && AppNodeFlowNodeTypeMap[node?.flowNodeType];
|
||||
const showVersion = useMemo(() => {
|
||||
if (!isAppNode || !node?.pluginId) return false;
|
||||
const splitRes = node.pluginId.split('-');
|
||||
if (splitRes.length > 1) {
|
||||
if ([FlowNodeTypeEnum.tool, FlowNodeTypeEnum.toolSet].includes(node.flowNodeType)) return false;
|
||||
if (node.pluginId.split('-').length > 1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user