mirror of
https://github.com/2930134478/AI-CS.git
synced 2026-06-15 08:45:41 +08:00
fix: 修复 TypeScript 类型错误 - selectConversation 支持 null
This commit is contained in:
@@ -126,7 +126,7 @@ export function useConversations(options?: UseConversationsOptions) {
|
||||
return () => clearTimeout(handler);
|
||||
}, [searchQuery, conversations, isInitialLoad, applyFilter, agentId]);
|
||||
|
||||
const selectConversation = useCallback((conversationId: number) => {
|
||||
const selectConversation = useCallback((conversationId: number | null) => {
|
||||
setSelectedConversationId((prev) =>
|
||||
prev === conversationId ? prev : conversationId
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user