Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 3, 2024
1 parent 0d9e701 commit d0e23d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion taxonium_component/src/components/SearchPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function SearchPanel({
</>
)}
</p>
{config.enabled_by_gisaid &&
{config.enabled_by_gisaid &&
<span>Enabled by data from <a rel="noopener noreferrer" href="https://www.gisaid.org" target="_blank"><img src="https://www.gisaid.org/fileadmin/gisaid/img/schild.png" alt="gisaid-logo" width="65"></a>.</span>
}
)}
Expand Down
10 changes: 5 additions & 5 deletions taxonium_component/src/utils/processNextstrain.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,14 @@ async function json_to_tree(json) {
json.meta.data_provenance.map((source) => source.name).join(" & ");
}

if (config.source.includes("GISAID")){
config.enabled_by_gisaid = true
if (config.source.includes("GISAID")) {
config.enabled_by_gisaid = true;
}

config.overlay = `<p>This is a tree extracted from a <a href='//nextstrain.org'>Nextstrain</a> JSON file, being visualised in Taxonium.</p>.`;
if(json.meta.description){
config.overlay = config.overlay+"<p>"+json.meta.description+"</p>";
}
if (json.meta.description) {
config.overlay = config.overlay + "<p>" + json.meta.description + "</p>";
}

if (json.meta && json.meta.updated) {
config.source = config.source + " in a tree built on " + json.meta.updated;
Expand Down

0 comments on commit d0e23d6

Please sign in to comment.