-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Putting BRCAExchange into "Detail View" mode causes the variants page to be blank for many deleted variants.
It's unclear to me how important this is. It seems likely that deleted variants are never a "current variant" which would mean that fixing their pages is not important. (I am not certain that it only happens on deleted variants but I could not find any current variants which are affected.)
Deleted variant = page which mentions "Note: This variant has been removed from the BRCA Exchange"
Browser: both Chrome and Firefox on macOS Big Sur
To reproduce:
- Navigate to https://brcaexchange.org/variant/25727
- Click "Show Detail View for this Variant"
- In the popup, click "YES". Nothing noticeable happens.
- Refresh the page
- Page is now blank except for header and footer:
Workaround:
- Navigate to a non-deleted variant eg https://brcaexchange.org/variant/840836
- Click "Show Summary View of This Variant" at the bottom
- Refresh the original 25727 page and observe that it is back to summary view.
When the page is blank, this error appears in the web console:
caught TypeError: Cannot read properties of null (reading 'varType')
at main.js:92347:79
at arrayMap (main.js:93223:24)
at Object.map (main.js:102164:15)
at ComputationalPredictionTile.render (main.js:92341:31)
at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (main.js:11409:35)
at ReactCompositeComponentWrapper._renderValidatedComponent (main.js:11429:33)
at ReactCompositeComponentWrapper.wrapper [as _renderValidatedComponent] (main.js:5160:22)
at ReactCompositeComponentWrapper.mountComponent (main.js:11042:31)
at ReactCompositeComponentWrapper.wrapper [as mountComponent] (main.js:5160:22)
at Object.mountComponent (main.js:9352:36)
which corresponds to ComputationalPredictionTile.js#L118
suggesting that variant.priors is null.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
