Skip to content

Commit 90a2fb6

Browse files
authored
Merge pull request #59 from CarnegieLearningWeb/Tali-Dev
fixed type errors
2 parents 1ee1f0a + 93b1d53 commit 90a2fb6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

bun.lockb

388 Bytes
Binary file not shown.

src/components/GraphvizParent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// React component code
2-
import React, { FC, RefObject, useContext, useEffect, useRef, useState } from 'react';
2+
import React, { useContext, useEffect, useRef, useState } from 'react';
33
import { graphviz } from 'd3-graphviz';
44
import {
55
generateDotString,
@@ -184,6 +184,8 @@ const GraphvizParent: React.FC<GraphvizParentProps> = ({
184184
filename: string,
185185
numberOfGraphs: number
186186
) => {
187+
// TODO: remove filename from props
188+
console.log("Filename: ", filename);
187189
if (dot && ref.current) {
188190
// Dynamically adjust width based on the number of graphs
189191
const width = numberOfGraphs === 3 ? 325 : 425;

0 commit comments

Comments
 (0)