MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / handleDeleteConversation

Function handleDeleteConversation

src/components/Sidebar/ConversationList.tsx:59–64  ·  view source on GitHub ↗
(conversation: Conversation)

Source from the content-addressed store, hash-verified

57 };
58
59 const handleDeleteConversation = (conversation: Conversation) => {
60 conversationStore.clearConversation((item) => item.id !== conversation.id);
61 if (conversationStore.currentConversationId === conversation.id) {
62 conversationStore.setCurrentConversationId(undefined);
63 }
64 };
65
66 return (
67 <>

Callers 1

ConversationListFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected