Skip to content

Commit 546e092

Browse files
Merge pull request #1986 from nextstrain/james/display-defaults-optional-bug
[bugfix] datasets without display_defaults
2 parents 678e25d + 1d73129 commit 546e092

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

3-
## version 2.63.0 - 2025/06/02
3+
* Fixed a bug where datasets without the (optional!) `display_defaults` would crash, which included newick files dragged onto auspice.us. ([#1986](https://github.com/nextstrain/auspice/pull/1986))
44

5+
## version 2.63.0 - 2025/06/02
56

67
* **Streamtrees** are a new visualisation option for displaying phylogenetic trees. They require datasets with labels on internal nodes which we essentially use to partition the nodes of the tree and render each partition as a streamgraph. Such visualisations are useful for conveying relationships between parts of the tree as well as improving performance for very large trees. See the [added documentation](https://docs.nextstrain.org/projects/auspice/en/latest/advanced-functionality/streamtrees.html) for more details. ([#1902](https://github.com/nextstrain/auspice/issues/1902))
78

src/actions/recomputeReduxState.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ const modifyControlsStateViaTree = (state, tree, treeToo, metadata) => {
482482
}
483483

484484
state.availableStreamLabelKeys = availableStreamLabelKeys(tree.availableBranchLabels, metadata.streamLabels);
485-
if (metadata.displayDefaults.streamLabel) {
485+
if (metadata?.displayDefaults?.streamLabel) {
486486
if (state.availableStreamLabelKeys.includes(metadata.displayDefaults.streamLabel)) {
487487
state.showStreamTrees = true;
488488
state.streamTreeBranchLabel = metadata.displayDefaults.streamLabel;

0 commit comments

Comments
 (0)