diff --git a/src/components/tree/tree.tsx b/src/components/tree/tree.tsx index 622d1bd96..8e220da32 100644 --- a/src/components/tree/tree.tsx +++ b/src/components/tree/tree.tsx @@ -93,9 +93,9 @@ export interface TreeComponentPropsFromState { } export interface TreeComponentState { - hoveredNode: ReactTreeNode | null - tree: PhyloTree | null - treeToo: PhyloTree | null + hoveredNode?: ReactTreeNode + tree?: PhyloTree + treeToo?: PhyloTree geneSortFn?: any selectedNode?: Record // I think this is ReactTreeNode but only set to empty. } @@ -116,11 +116,7 @@ export class TreeComponent extends React.Component