Skip to content

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

@e-t-k

Description

@e-t-k

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions