Skip to content

Commit

Permalink
Fixing bug when selection is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
guzmanvig committed Feb 20, 2024
1 parent 64bf683 commit 348ecc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SeqViewerContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ class SeqViewerContainer extends React.Component<SeqViewerContainerProps, SeqVie

selectionIsProgramatic(selection: any): selection is Selection {
// If the selection was done programatically, it has not type
return !selection.type;
if (selection) return !selection.type;
return false;
}

// If the selection prop updates, also scroll the linear view to the new selection
Expand Down

0 comments on commit 348ecc9

Please sign in to comment.