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
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