Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gene search bug: this.species.text is undefined #17

Open
mbsimonovic opened this issue Aug 27, 2015 · 0 comments
Open

gene search bug: this.species.text is undefined #17

mbsimonovic opened this issue Aug 27, 2015 · 0 comments

Comments

@mbsimonovic
Copy link

UPDATE: this is jsrolla's code, maybe the issue should be moved there...

On the develop branch, latest commit is 72dbbfa. Gene search fails with the console error:

Uncaught TypeError: Cannot read property 'split' of undefined
Utils.getSpeciesCode    @   utils.js:127
quickSearchResultFn @   genome-viewer.js:311
NavigationBar._setQuickSearchMenu   @   navigation-bar.js:386
(anonymous function)    @   navigation-bar.js:315

genome-viewer.js:311 says:

var speciesCode = Utils.getSpeciesCode(this.species.text);

this.species is an object with these properties:

species: Object
assembly: Object
chromosomes: Object
data: Array[4]
id: "drerio"
scientificName: "Danio rerio"

To fix this you'd just have to replace this.species.text with this.species.scientificName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant