diff --git a/src/components/controls/choose-branch-labelling.js b/src/components/controls/choose-branch-labelling.js index 20ed093fa..36539c4b2 100644 --- a/src/components/controls/choose-branch-labelling.js +++ b/src/components/controls/choose-branch-labelling.js @@ -11,7 +11,10 @@ import Toggle from "./toggle"; @connect((state) => ({ selected: state.controls.selectedBranchLabel, showAll: state.controls.showAllBranchLabels, - available: state.tree.availableBranchLabels, + available: Array.from( + (new Set(state.tree.availableBranchLabels)) + .union(new Set(state.treeToo?.availableBranchLabels ?? [])) + ), canRenderBranchLabels: state.controls.canRenderBranchLabels })) class ChooseBranchLabelling extends React.Component {