diff --git a/src/pages/flowEditor/components/nodeContentOther.tsx b/src/pages/flowEditor/components/nodeContentOther.tsx index 5dd968c..61d9026 100644 --- a/src/pages/flowEditor/components/nodeContentOther.tsx +++ b/src/pages/flowEditor/components/nodeContentOther.tsx @@ -61,7 +61,7 @@ const renderSpecialNodeHandles = (isStartNode: boolean, isEndNode: boolean, data }} /> ))} - {dataOuts.map((_, index) => ( + {dataOuts.length > 0 && dataOuts.map((_, index) => ( ))} - {dataIns.map((_, index) => ( - - ))} + {dataIns.length > 0 && dataIns.map((_, index) => ( + + ))} ); }; @@ -238,7 +238,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => { )} - {(dataIns.length || dataOuts.length) && ( + {(dataIns.length > 0 || dataOuts.length > 0) && ( <> {/*分割*/}