Skip to content

Commit

Permalink
Use null type for domRefs
Browse files Browse the repository at this point in the history
D3 expects the empty value to be null, not undefined.
  • Loading branch information
victorlin committed Nov 12, 2024
1 parent 5f4fe7e commit aa30581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tree/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export class TreeComponent extends React.Component<TreeComponentProps, TreeCompo
constructor(props: TreeComponentProps) {
super(props);
this.domRefs = {
mainTree: undefined,
secondTree: undefined
mainTree: null,
secondTree: null
};
this.tangleRef = undefined;
this.state = {
Expand Down

0 comments on commit aa30581

Please sign in to comment.