Skip to content

Commit

Permalink
Merge pull request #203 from stephenshank/busted-phyloalignment-hotfix
Browse files Browse the repository at this point in the history
Busted phyloalignment hotfix
  • Loading branch information
stephenshank committed Oct 17, 2019
2 parents c4bf714 + aec2b32 commit 0996263
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "git://github.com/veg/hyphy-vision.git"
},
"main": "dist/hyphyvision.js",
"version": "2.6.0",
"version": "2.6.1",
"dependencies": {
"@fortawesome/fontawesome-free": "^5.3.1",
"alignment.js": "0.0.1",
Expand Down
6 changes: 5 additions & 1 deletion src/jsx/busted.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,11 @@ class BUSTEDAlignmentTreeERWidget extends React.Component {
}
}
render() {
if (!this.state.tree) return <div />;
const has_tree = Boolean(this.state.tree),
has_evidence_ratios = !_.isEmpty(this.props.evidence_ratios),
has_fasta = Boolean(this.props.fasta),
has_data = has_tree && has_evidence_ratios & has_fasta;
if (!has_data) return <div />;
const { site_size } = this.props,
phylotree_props = {
width: 200,
Expand Down

0 comments on commit 0996263

Please sign in to comment.