Skip to content

Commit

Permalink
Allow all TreeComponentState properties to be optional
Browse files Browse the repository at this point in the history
None of these properties are guaranteed to be set on existing usages of
setState.
  • Loading branch information
victorlin committed Nov 5, 2024
1 parent 7e21a32 commit 9549dfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tree/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ export interface TreeComponentStateProps {
}

export interface TreeComponentState {
hoveredNode: {
hoveredNode?: {
node: PhyloNode
isBranch: boolean
} | null
tree: PhyloTreeType | null
treeToo: PhyloTreeType | null
tree?: PhyloTreeType | null
treeToo?: PhyloTreeType | null
geneSortFn?: (a: number, b: number) => number | (() => 0)
}

Expand Down

0 comments on commit 9549dfb

Please sign in to comment.