MCPcopy Index your code
hub / github.com/sqlchat/sqlchat / handleSaveEdit

Function handleSaveEdit

src/components/UpdateConversationModal.tsx:32–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 const currentAssistant = assistantList.find((assistant) => assistant.id === assistantId);
31
32 const handleSaveEdit = () => {
33 const formatedTitle = title.trim();
34 if (formatedTitle === "") {
35 return;
36 }
37
38 conversationStore.updateConversation(conversation.id, {
39 title: formatedTitle,
40 assistantId: assistantId,
41 });
42 toast.success("Conversation updated");
43 close();
44 };
45
46 return (
47 <Modal title={t("conversation.update")} onClose={close}>

Callers

nothing calls this directly

Calls 1

closeFunction · 0.70

Tested by

no test coverage detected