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

"Show Detail View" causes deleted variants to have blank page #1468

Open
e-t-k opened this issue Oct 16, 2023 · 1 comment
Open

"Show Detail View" causes deleted variants to have blank page #1468

e-t-k opened this issue Oct 16, 2023 · 1 comment

Comments

@e-t-k
Copy link
Contributor

e-t-k commented Oct 16, 2023

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:

image

Workaround:

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.

  • This reproduces on most of the deleted variants I spot checked ( 88795, 81930, 105382) but not all of them ( 280048 ).
  • Also reproduces on variant 1 which is neither deleted nor current.
@melissacline
Copy link
Contributor

melissacline commented Oct 18, 2023 via email

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

2 participants