diff --git a/plugins/linear-genome-view/src/LinearGenomeView/components/Highlight.tsx b/plugins/linear-genome-view/src/LinearGenomeView/components/Highlight.tsx index 0904e4ae45..7b5b8bb85e 100644 --- a/plugins/linear-genome-view/src/LinearGenomeView/components/Highlight.tsx +++ b/plugins/linear-genome-view/src/LinearGenomeView/components/Highlight.tsx @@ -96,9 +96,7 @@ const Highlight = observer(function Highlight({ model }: { model: LGV }) { : undefined } - const asm = assemblyManager.assemblies.find( - asm => asm.name === model.highlight?.assemblyName, - ) + const asm = assemblyManager.get(model.highlight?.assemblyName) const h = mapCoords({ ...model.highlight, diff --git a/plugins/linear-genome-view/src/LinearGenomeView/components/OverviewHighlight.tsx b/plugins/linear-genome-view/src/LinearGenomeView/components/OverviewHighlight.tsx index 8456416cbc..0aac2efedc 100644 --- a/plugins/linear-genome-view/src/LinearGenomeView/components/OverviewHighlight.tsx +++ b/plugins/linear-genome-view/src/LinearGenomeView/components/OverviewHighlight.tsx @@ -63,9 +63,7 @@ const OverviewHighlight = observer(function OverviewHighlight({ return null } - const asm = assemblyManager.assemblies.find( - asm => asm.name === model.highlight?.assemblyName, - ) + const asm = assemblyManager.get(model.highlight?.assemblyName) const h = mapCoords({ ...model.highlight,