Skip to content

Commit be92c09

Browse files
committed
commit
1 parent c310e86 commit be92c09

File tree

4 files changed

+200
-203
lines changed

4 files changed

+200
-203
lines changed

app/components/chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function Chat({ repo, path, setPath, graph, chartRef, selectedPathId, isP
122122
const [sugOpen, setSugOpen] = useState(false);
123123

124124
// A reference to the chat container to allow scrolling to the bottom
125-
const containerRef: React.RefObject<HTMLDivElement> = useRef(null);
125+
const containerRef: React.RefObject<HTMLDivElement | null> = useRef(null);
126126

127127
const isSendMessage = messages.some(m => m.type === MessageTypes.Pending) || (messages.some(m => m.text === "Please select a starting point and the end point. Select or press relevant item on the graph") && !messages.some(m => m.type === MessageTypes.Path))
128128

app/components/toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Dispatch, RefObject, SetStateAction } from "react";
44
import { Node } from "./model";
55

66
interface Props {
7-
chartRef: RefObject<cytoscape.Core>
7+
chartRef: RefObject<cytoscape.Core | null>
88
setSelectedObj: Dispatch<SetStateAction<Node | undefined>>
99
className?: string
1010
}

0 commit comments

Comments
 (0)