We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb605a9 commit 39a9da4Copy full SHA for 39a9da4
1 file changed
src/index.js
@@ -41,7 +41,7 @@ class LollipopPlot extends React.Component {
41
42
domains = () => {
43
const {domains} = this.props
44
- return domains.map((domain, index) => {
+ return domains ? domains.map((domain, index) => {
45
const x = this.codonToX(domain.startCodon)
46
const width = this.codonToX(domain.endCodon) - x
47
return (
@@ -59,7 +59,7 @@ class LollipopPlot extends React.Component {
59
spec={domain}
60
/>
61
)
62
- })
+ }) : ''
63
}
64
65
lollipops = () => {
0 commit comments