Commit 1edca309 by heheer Committed by GitHub

remove system plugin node version (#4797)

parent 1470c37e
......@@ -102,6 +102,14 @@ const NodeCard = (props: Props) => {
return { node, parentNode };
}, [nodeList, nodeId]);
const isAppNode = node && AppNodeFlowNodeTypeMap[node?.flowNodeType];
const showVersion = useMemo(() => {
if (!isAppNode || !node?.pluginId) return false;
const splitRes = node.pluginId.split('-');
if (splitRes.length > 1) {
return false;
}
return true;
}, [isAppNode, node]);
const { data: nodeTemplate } = useRequest2(
async () => {
......@@ -212,7 +220,7 @@ const NodeCard = (props: Props) => {
<MyIcon name={'edit'} w={'14px'} />
</Button>
<Box flex={1} mr={1} />
{isAppNode && <NodeVersion node={node} />}
{showVersion && node && <NodeVersion node={node} />}
{!!nodeTemplate?.diagram && (
<MyTooltip
label={
......@@ -279,7 +287,7 @@ const NodeCard = (props: Props) => {
avatar,
t,
name,
isAppNode,
showVersion,
nodeTemplate?.diagram,
nodeTemplate?.userGuide,
nodeTemplate?.name,
......
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