Skip to content

Commit

Permalink
use get
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinebridge committed Mar 8, 2024
1 parent 83da770 commit dcccb54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit dcccb54

Please sign in to comment.