Skip to content

Commit

Permalink
Add a default value for coloringsPresentOnTree
Browse files Browse the repository at this point in the history
There is a default value set in modifyControlsStateViaTree, but this is
the only property that doesn't have an explicit default set by
getDefaultControlsState. Add it for consistency.
  • Loading branch information
victorlin committed Oct 30, 2024
1 parent b92feb6 commit 4e96a16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/reducers/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface BasicControlsState {
canTogglePanelLayout: boolean
colorBy: string
colorByConfidence: boolean
coloringsPresentOnTree?: Set<string>
coloringsPresentOnTree: Set<string>
colorScale?: ColorScale
dateMax: string
dateMaxNumeric: number
Expand Down Expand Up @@ -142,6 +142,7 @@ export const getDefaultControlsState = (): ControlsState => {
colorBy: defaults.colorBy,
colorByConfidence: false,
colorScale: undefined,
coloringsPresentOnTree: new Set(),
explodeAttr: undefined,
selectedBranchLabel: "none",
showAllBranchLabels: false,
Expand Down

0 comments on commit 4e96a16

Please sign in to comment.