fix: code review cleanup

- Fixed TypeScript exactOptionalPropertyTypes errors in chat components
- Removed console.error statements (errors are handled via state)
- Fixed type compatibility issues with undefined vs null values
- All chat-related files now pass strict TypeScript checks
This commit is contained in:
Jason Woltje
2026-01-29 23:36:01 -06:00
parent 08938dc735
commit 69bdfa5df1
4 changed files with 17 additions and 14 deletions

View File

@@ -66,9 +66,9 @@ export const Chat = forwardRef<ChatRef, ChatProps>(function Chat({
clearError,
} = useChat({
model: "llama3.2",
projectId: initialProjectId,
onError: (err) => {
console.error("Chat error:", err);
...(initialProjectId !== undefined && { projectId: initialProjectId }),
onError: (_err) => {
// Error is handled by the useChat hook's state
},
});