Skip to content

Commit

Permalink
fix tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Dec 14, 2023
1 parent d0d0c41 commit 1a15e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/ui/components/d3-graph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function findRootSvg(rootEl, margin) {
* @param {{className?: string, data: T, render: (el: HTMLElement, data: T) => void, computeRerenderKey: (data: T) => string, update?: (el: HTMLElement, data: T) => void, computeUpdateKey?: (data: T) => string}} props
*/
export const D3Graph = props => {
const graphElRef = useRef(/** @type {HTMLElement|undefined} */ (undefined));
const graphElRef = useRef(/** @type {HTMLDivElement|null} */ (null));
const updateKey = props.computeUpdateKey ? props.computeUpdateKey(props.data) : '';
const rerender = () => {
if (!graphElRef.current) return;
Expand Down

0 comments on commit 1a15e12

Please sign in to comment.