Skip to content

Commit

Permalink
#6127 - Hover mouse over ambiguous monomer on Micromolecules canvas c…
Browse files Browse the repository at this point in the history
…auses app crash (#6128)
  • Loading branch information
Guch1g0v authored Dec 11, 2024
1 parent cca5f90 commit 89f5ce6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function calculateTop(
target: CalculatePreviewTopPayload,
height: number,
): number {
const canvasWrapperBoundingClientRect = ZoomTool.instance.canvasWrapper
const canvasWrapperBoundingClientRect = ZoomTool.instance?.canvasWrapper
.node()
?.getBoundingClientRect();
const canvasWrapperTopOffset = canvasWrapperBoundingClientRect?.top || 0;
Expand Down

0 comments on commit 89f5ce6

Please sign in to comment.