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

@@ -141,7 +141,7 @@ export async function createConversation(
return createIdea({
title,
content,
projectId,
...(projectId !== undefined && { projectId }),
category: "conversation",
tags: ["chat"],
metadata: { conversationType: "chat" },
@@ -156,5 +156,8 @@ export async function updateConversation(
content: string,
title?: string
): Promise<Idea> {
return updateIdea(id, { content, title });
return updateIdea(id, {
content,
...(title !== undefined && { title })
});
}