Skip to content

Commit

Permalink
account for undefined cells in busted
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenweaver committed Nov 24, 2024
1 parent 48ecff2 commit 7118422
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "git://github.com/veg/hyphy-vision.git"
},
"main": "dist/hyphyvision.js",
"version": "2.15.7-alpha.1",
"version": "2.15.7",
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.3",
"@hyphy_software/fel-analysis-result-visualization": "https://api.observablehq.com/@hyphy_software/[email protected]?v=3",
Expand Down
17 changes: 7 additions & 10 deletions src/jsx/busted.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const React = require("react"),
ReactDOM = require("react-dom"),
_ = require("underscore");

require("phylotree");
require("phylotree.css");

import { ErrorMessage } from "./components/error_message.jsx";
import { ExportButton } from "./components/export-button.jsx";
import { ResultsPage } from "./components/results_page.jsx";
Expand Down Expand Up @@ -65,7 +68,7 @@ class BUSTEDContents extends React.Component {
//undefined
];

if (_.includes(toInclude, name)) {
if (_.includes(toInclude, name) || name == undefined) {
const node = Inspector.into(this.figureRef.current)(name);
if (name == "viewof table1") {
node._node.classList.add("table");
Expand Down Expand Up @@ -98,13 +101,7 @@ class BUSTEDContents extends React.Component {
return (
<div className="busted">
<div className="border-bottom border-primary mb-3">
<h1 className="list-group-item-heading">
BUSTED
<h3>
Branch-site Unrestricted Statistical Test for Episodic
Diversification
</h3>
</h1>
<span></span>
</div>

<div>
Expand Down Expand Up @@ -150,7 +147,7 @@ export default function render_busted(
element,
fasta,
originalFile,
analysisLog
analysisLog,
) {
ReactDOM.render(
<BUSTED
Expand All @@ -159,6 +156,6 @@ export default function render_busted(
originalFile={originalFile}
analysisLog={analysisLog}
/>,
document.getElementById(element)
document.getElementById(element),
);
}

0 comments on commit 7118422

Please sign in to comment.