filter tool type version & fix unpublished version (#4803)

This commit is contained in:
heheer
2025-05-13 17:58:51 +08:00
committed by GitHub
parent 398d131bac
commit 3688842cc7
4 changed files with 57 additions and 54 deletions

View File

@@ -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;