Closed will-moore closed 2 years ago
Code makes sense. To reproduce the bug on idr-testing is not successful, so I would propose to merge and deploy on idr-next , cc @jburel
Edit - we were able to reproduce the error after all, see next comment
We are now reproducing the bug on idr-testing successfully, see screenshot of the Console from Chrome on idr-testing when searching for p
Next step : @will-moore is deploying this fix to idr-testing. Expectation: the error will not appear, the dropdown will appear
cc @jburel @francesw
After deployment of this fix on idr-testing we have
Fixes a bug seen on idr-next when the studies.tsv doesn't contain a study that is in the DB. When looking-up image counts (to display in the auto-complete panel) the
containers
which is coming from the studies.tsv isundefined
if the study ID is not found instudies.tsv
- idr-next currently hasidr0141
which is missing from https://raw.githubusercontent.com/IDR/idr.openmicroscopy.org/master/_data/studies.tsvThis gives the following error in console:
The code fix moves a check for this to before the
containers.filter()
that generates the bug.