Skip to content

Commit

Permalink
Fix problem with gene panel icons not appearing for genomic tracks
Browse files Browse the repository at this point in the history
Was related to refactoring of sampleToMutationGenePanelId and sampleToDiscreteGenePanelId to MobXPromisses
  • Loading branch information
pvannierop committed Oct 23, 2019
1 parent 451d48a commit 9810e74
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions src/pages/patientView/PatientViewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,13 @@ export default class PatientViewPage extends React.Component<IPatientViewPagePro
/>

{
(patientViewPageStore.mutationData.isComplete && patientViewPageStore.cnaSegments.isComplete
&& patientViewPageStore.sequencedSampleIdsInStudy.isComplete && sampleManager)
&& ( patientViewPageStore.mergedMutationDataFilteredByGene.length > 0 || patientViewPageStore.cnaSegments.result.length > 0)
&& (
(patientViewPageStore.mutationData.isComplete
&& patientViewPageStore.cnaSegments.isComplete
&& patientViewPageStore.sequencedSampleIdsInStudy.isComplete
&& patientViewPageStore.sampleToMutationGenePanelId.isComplete
&& patientViewPageStore.sampleToDiscreteGenePanelId.isComplete
&& (patientViewPageStore.mergedMutationDataFilteredByGene.length > 0 || patientViewPageStore.cnaSegments.result.length > 0)
&& sampleManager) && (
<div>
<GenomicOverview
mergedMutations={patientViewPageStore.mergedMutationDataFilteredByGene}
Expand All @@ -443,8 +446,8 @@ export default class PatientViewPage extends React.Component<IPatientViewPagePro
sampleColors={sampleManager.sampleColors}
sampleManager={sampleManager}
containerWidth={WindowStore.size.width-20}
sampleIdToMutationGenePanelId={patientViewPageStore.sampleToMutationGenePanelId}
sampleIdToCopyNumberGenePanelId={patientViewPageStore.sampleToDiscreteGenePanelId}
sampleIdToMutationGenePanelId={patientViewPageStore.sampleToMutationGenePanelId.result}
sampleIdToCopyNumberGenePanelId={patientViewPageStore.sampleToDiscreteGenePanelId.result}
/>
<hr />
</div>
Expand All @@ -454,8 +457,12 @@ export default class PatientViewPage extends React.Component<IPatientViewPagePro
<LoadingIndicator isLoading={patientViewPageStore.mutationData.isPending || patientViewPageStore.uncalledMutationData.isPending || patientViewPageStore.oncoKbAnnotatedGenes.isPending || patientViewPageStore.studyIdToStudy.isPending} />

{
(patientViewPageStore.oncoKbAnnotatedGenes.isComplete && patientViewPageStore.mutationData.isComplete && patientViewPageStore.uncalledMutationData.isComplete
&& !!sampleManager && patientViewPageStore.studyIdToStudy.isComplete) && (
(patientViewPageStore.oncoKbAnnotatedGenes.isComplete
&& patientViewPageStore.mutationData.isComplete
&& patientViewPageStore.uncalledMutationData.isComplete
&& patientViewPageStore.studyIdToStudy.isComplete
&& patientViewPageStore.sampleToMutationGenePanelId.isComplete
&& !!sampleManager) && (
<div data-test="patientview-mutation-table">
<PatientViewMutationTable
studyIdToStudy={patientViewPageStore.studyIdToStudy.result}
Expand Down

0 comments on commit 9810e74

Please sign in to comment.