Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkonecn committed Nov 27, 2024
1 parent 8458c59 commit 08d933d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ type HighestLevelEvidenceProp = {
| 'DiagnosticImplication'
| 'PrognosticImplication'
| 'Fda';
level: string;
level: string | undefined;
};

export default function HighestLevelEvidence({
type,
level: rawLevel,
level: rawLevel = '',
}: HighestLevelEvidenceProp): JSX.Element {
if (type === 'Sensitive') {
const level = levelOfEvidence2Level(rawLevel, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@ export class SomaticGermlineAlterationPage extends React.Component<
);
}

@computed
get errorOccurred() {
return (
this.store.gene.isError ||
this.store.geneNumber.isError ||
this.store.ensemblGenes.isError ||
this.store.clinicalAlterations.isError ||
this.store.biologicalAlterations.isError ||
this.store.annotationData.isError
);
}

@computed
get documentTitle() {
const content = [];
Expand Down Expand Up @@ -558,7 +570,8 @@ export class SomaticGermlineAlterationPage extends React.Component<
items={[
{
title: ONCOKB_TM,
value: 'Likely Pathogenic',
value: this.store.annotationData.result.germline
.pathogenic,
},
{
title: 'Clinvar',
Expand All @@ -572,11 +585,13 @@ export class SomaticGermlineAlterationPage extends React.Component<
items={[
{
title: 'Penetrance',
value: 'High',
value: this.store.annotationData.result.germline
.penetrance,
},
{
title: 'Inheritance',
value: 'Autosomal Dominant',
value: this.store.annotationData.result.germline
.inheritanceMechanism,
},
]}
/>
Expand Down Expand Up @@ -734,7 +749,7 @@ export class SomaticGermlineAlterationPage extends React.Component<
</Container>
</>
) : (
<If condition={this.store.annotationData.isError}>
<If condition={this.errorOccurred}>
<Then>
<Alert variant="warning" className={'text-center'}>
An error occurred while annotating your variant.
Expand Down

0 comments on commit 08d933d

Please sign in to comment.