From 43d786a01a9ccc45b8dc669b8f02ae184d6b0d37 Mon Sep 17 00:00:00 2001 From: Onur Sumer Date: Thu, 16 Jan 2020 20:27:37 -0500 Subject: [PATCH] [react-mutation-mapper] display error message when no transcript available Signed-off-by: Onur Sumer --- package.json | 2 +- packages/react-mutation-mapper/package.json | 2 +- .../lollipopMutationPlot/LollipopMutationPlot.tsx | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f2cb40a4366..f0d232e8189 100644 --- a/package.json +++ b/package.json @@ -214,7 +214,7 @@ "react-markdown": "^3.4.1", "react-mfb": "^0.6.0", "react-motion": "^0.4.7", - "react-mutation-mapper": "^0.4.2", + "react-mutation-mapper": "^0.4.3", "react-overlays": "0.7.4", "react-portal": "^4.2.0", "react-rangeslider": "^2.1.0", diff --git a/packages/react-mutation-mapper/package.json b/packages/react-mutation-mapper/package.json index 041ffd6bc88..24133bcb492 100644 --- a/packages/react-mutation-mapper/package.json +++ b/packages/react-mutation-mapper/package.json @@ -1,6 +1,6 @@ { "name": "react-mutation-mapper", - "version": "0.4.2", + "version": "0.4.3", "description": "Generic Mutation Mapper", "main": "dist/index.js", "module": "dist/index.es.js", diff --git a/packages/react-mutation-mapper/src/component/lollipopMutationPlot/LollipopMutationPlot.tsx b/packages/react-mutation-mapper/src/component/lollipopMutationPlot/LollipopMutationPlot.tsx index 64ec6fa3d4d..465459382b4 100644 --- a/packages/react-mutation-mapper/src/component/lollipopMutationPlot/LollipopMutationPlot.tsx +++ b/packages/react-mutation-mapper/src/component/lollipopMutationPlot/LollipopMutationPlot.tsx @@ -562,7 +562,12 @@ export default class LollipopMutationPlot extends React.Component ); - } else { + } + else if (this.props.store.canonicalTranscript.isComplete && + this.props.store.canonicalTranscript.result === undefined) { + return No Transcript found for {this.hugoGeneSymbol}; + } + else { return this.props.loadingIndicator || ; } }