Skip to content

Commit 873e2cb

Browse files
Fix bug showing default and lasfd simultaneously
1 parent a5c2ecf commit 873e2cb

File tree

1 file changed

+2
-2
lines changed
  • packages/jbrowse-plugin-apollo/src/LinearApolloSixFrameDisplay/glyphs

1 file changed

+2
-2
lines changed

packages/jbrowse-plugin-apollo/src/LinearApolloSixFrameDisplay/glyphs/GeneGlyph.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function draw(
330330
let prevCDSTop = 0
331331
let prevCDSEndPx = 0
332332
let counter = 1
333-
for (const cds of cdsRow.sort((a, b) => a.max - b.max)) {
333+
for (const cds of cdsRow.toSorted((a, b) => a.max - b.max)) {
334334
if (
335335
(selectedFeature &&
336336
isSelected &&
@@ -520,7 +520,7 @@ function drawHover(
520520
let prevCDSTop = 0
521521
let prevCDSEndPx = 0
522522
let counter = 1
523-
for (const cds of cdsRow.sort((a, b) => a.max - b.max)) {
523+
for (const cds of cdsRow.toSorted((a, b) => a.max - b.max)) {
524524
const cdsWidthPx = (cds.max - cds.min) / bpPerPx
525525
const minX =
526526
(lgv.bpToPx({

0 commit comments

Comments
 (0)