GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
208 stars 62 forks source link

Fix navigating to a refname result that is also indexed in search track index #4593

Closed cmdcolin closed 3 weeks ago

cmdcolin commented 1 month ago

Currently if you query the search box for a refname, you can get a situation where manually clicking on the returned search results does nothing

This PR fixes that

Fixes https://github.com/GMOD/jbrowse-components/issues/4452

Note: i'm not even attempting to document the exact data flow and reason why this PR fixes the issue at this time. This is a bit of a stop gap solution. The behavior of the search box is complex and i admittedly do not actually know the exact sequence of steps that leads to this scenario happening, a more thorough analysis could be useful, as well as for potentially refactoring the data flow of the search box