-
Notifications
You must be signed in to change notification settings - Fork 27
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
Warning: Failed prop type: Invalid prop tracks
of type array
supplied to TrackPicker
, expected object
.
#373
Comments
When does this warning occur? Is there a way I can recreate this? Think I have a good idea of where this is happening. Tracks from tracks.json are put into an array format, but likely need to be put into an object format with indices as keys. |
I am getting this error when I select custom data, select cactus.vg for the bed file, and then select "region without read tracks" for the region. I'm not sure if it shows up anywhere else. |
It works for me on the current master branch. I'm guessing it's something that was fixed in this PR #356. Maybe try merging and see if that fixes your issue? |
I can reproduce this on commit e70b93c which is the current
Here's my log from Firefox:
It looks like the |
I think the easiest way to fix this would be to go here: sequenceTubeMap/src/components/HeaderForm.js Line 654 in f4ab3c2
And to add a function call to convert from an array:
to an object with integer keys:
|
Warning: Failed prop type: Invalid prop
tracks
of typearray
supplied toTrackPicker
, expectedobject
.at TrackPicker (http://127.0.0.1:3001/static/js/bundle.js:6028:21)
at HeaderForm (http://127.0.0.1:3001/static/js/bundle.js:2546:157)
at div
at App (http://127.0.0.1:3001/static/js/bundle.js:101:157)
at RenderedRoute (http://127.0.0.1:3001/static/js/bundle.js:135457:27)
at RenderedRoute (http://127.0.0.1:3001/static/js/bundle.js:135457:27)
at Routes (http://127.0.0.1:3001/static/js/bundle.js:136033:24)
at Router (http://127.0.0.1:3001/static/js/bundle.js:135963:30)
at BrowserRouter (http://127.0.0.1:3001/static/js/bundle.js:134166:23)
I am getting this warning and it looks like it might something coming in from other recent changes. @ducku maybe you can take a look?
The text was updated successfully, but these errors were encountered: