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:
@@ -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 })
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user