From 1cf6362408cfa8bd3fad741b8c71e62fdbae5c6e Mon Sep 17 00:00:00 2001 From: boehmdo Date: Fri, 23 Feb 2024 11:03:22 +0100 Subject: [PATCH 1/2] fix missing variantannotation error --- .../form/TherapyRecommendationFormAlterationInput.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/patientView/therapyRecommendation/form/TherapyRecommendationFormAlterationInput.tsx b/src/pages/patientView/therapyRecommendation/form/TherapyRecommendationFormAlterationInput.tsx index a22faeed148..d49014d5fec 100644 --- a/src/pages/patientView/therapyRecommendation/form/TherapyRecommendationFormAlterationInput.tsx +++ b/src/pages/patientView/therapyRecommendation/form/TherapyRecommendationFormAlterationInput.tsx @@ -79,10 +79,12 @@ export class TherapyRecommendationFormAlterationInput extends React.Component< mutation.referenceAllele + ',' + mutation.variantAllele; - const annotation = this.props.indexedVariantAnnotations![index]; - const myVariantInfo = this.props.indexedMyVariantInfoAnnotations![ - index - ]; + const annotation = this.props.indexedVariantAnnotations + ? this.props.indexedVariantAnnotations[index] + : undefined; + const myVariantInfo = this.props.indexedMyVariantInfoAnnotations + ? this.props.indexedMyVariantInfoAnnotations[index] + : undefined; let dbsnp; let clinvar; let cosmic; From f424de599cacaf4d1a2d00a309da251b37eae117 Mon Sep 17 00:00:00 2001 From: boehmdo Date: Fri, 23 Feb 2024 12:45:41 +0100 Subject: [PATCH 2/2] fix mtbModel --- packages/cbioportal-utils/src/model/TherapyRecommendation.ts | 1 - src/pages/patientView/therapyRecommendation/MtbTable.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/cbioportal-utils/src/model/TherapyRecommendation.ts b/packages/cbioportal-utils/src/model/TherapyRecommendation.ts index cf7c3ded1d1..9a153feb006 100644 --- a/packages/cbioportal-utils/src/model/TherapyRecommendation.ts +++ b/packages/cbioportal-utils/src/model/TherapyRecommendation.ts @@ -38,7 +38,6 @@ export interface IMtb { geneticCounselingRecommendation: boolean; rebiopsyRecommendation: boolean; generalRecommendation: string; - diagnosis: string; date: string; mtbState: MtbState; samples: string[]; diff --git a/src/pages/patientView/therapyRecommendation/MtbTable.tsx b/src/pages/patientView/therapyRecommendation/MtbTable.tsx index 79a51fb1c07..2a9de25d43f 100644 --- a/src/pages/patientView/therapyRecommendation/MtbTable.tsx +++ b/src/pages/patientView/therapyRecommendation/MtbTable.tsx @@ -484,7 +484,6 @@ export default class MtbTable extends React.Component { geneticCounselingRecommendation: false, rebiopsyRecommendation: false, therapyRecommendations: [], - diagnosis: '', date: now.toISOString().split('T')[0], mtbState: Object.keys(MtbState).find( key =>