Skip to content

Commit

Permalink
Fix alignments breakpoint svg
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Mar 14, 2024
1 parent 1dc2c32 commit 5f92e87
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,8 @@ const AlignmentConnections = observer(function ({
yOffset = rect.top
}

if (!assembly) {
return null
}

return (
return assembly ? (
<g
stroke={theme.palette.text.disabled}
fill="none"
data-testid={layoutMatches.length ? `${trackId}-loaded` : trackId}
>
Expand Down Expand Up @@ -133,6 +128,7 @@ const AlignmentConnections = observer(function ({
<path
d={path}
key={id}
stroke={theme.palette.text.disabled}
data-testid="r1"
strokeWidth={mouseoverElt === id ? 5 : 1}
onClick={() => {
Expand Down Expand Up @@ -160,7 +156,7 @@ const AlignmentConnections = observer(function ({
return ret
})}
</g>
)
) : null
})

export default AlignmentConnections

0 comments on commit 5f92e87

Please sign in to comment.