diff --git a/contexts/diagram-context.tsx b/contexts/diagram-context.tsx index adce5fa..7c6de65 100644 --- a/contexts/diagram-context.tsx +++ b/contexts/diagram-context.tsx @@ -10,8 +10,8 @@ interface DiagramContextType { diagramHistory: { svg: string; xml: string }[]; loadDiagram: (chart: string) => void; handleExport: () => void; - resolverRef: React.MutableRefObject<((value: string) => void) | null>; - drawioRef: React.MutableRefObject; + resolverRef: React.Ref<((value: string) => void) | null>; + drawioRef: React.Ref; handleDiagramExport: (data: any) => void; } @@ -23,7 +23,7 @@ export function DiagramProvider({ children }: { children: React.ReactNode }) { const [diagramHistory, setDiagramHistory] = useState< { svg: string; xml: string }[] >([]); - const drawioRef = useRef(null); + const drawioRef = useRef(null); const resolverRef = useRef<((value: string) => void) | null>(null); const handleExport = () => {