Skip to content

Commit

Permalink
Merge pull request #2993 from onursumer/no-transcript-found
Browse files Browse the repository at this point in the history
[react-mutation-mapper] display error message when no transcript available
  • Loading branch information
inodb authored Jan 17, 2020
2 parents e509e88 + 43d786a commit dbedc53
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-mutation-mapper/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,12 @@ export default class LollipopMutationPlot extends React.Component<LollipopMutati
/>
</div>
);
} else {
}
else if (this.props.store.canonicalTranscript.isComplete &&
this.props.store.canonicalTranscript.result === undefined) {
return <span><i className="fa fa-exclamation-triangle text-danger"/> No Transcript found for {this.hugoGeneSymbol}</span>;
}
else {
return this.props.loadingIndicator || <i className="fa fa-spinner fa-pulse fa-2x" />;
}
}
Expand Down

0 comments on commit dbedc53

Please sign in to comment.