conditional colon (#2181)

This commit is contained in:
Colin Megill
2021-05-04 13:43:02 -04:00
committed by GitHub
parent f2e9aecebe
commit 25b308c532
+3 -1
View File
@@ -106,7 +106,9 @@ class Gene extends React.Component {
top: -1,
}}
/>
<Truncate tooltipAddendum={`: ${geneDescription}`}>
<Truncate
tooltipAddendum={geneDescription && `: ${geneDescription}`}
>
<span
style={{
width: globals.leftSidebarWidth - genesetNameLengthVisible,