MCPcopy Create free account
hub / github.com/SensAI-PT/RAGMeUp / handleDeleteChat

Function handleDeleteChat

ui/node-react/client/src/pages/MainLayout.js:51–61  ·  view source on GitHub ↗
(chatId)

Source from the content-addressed store, hash-verified

49 };
50
51 const handleDeleteChat = async (chatId) => {
52 try {
53 await deleteChatApi(chatId);
54 setChats((prev) => prev.filter((c) => c.id !== chatId));
55 if (activeChatId === chatId) {
56 setActiveChatId(null);
57 }
58 } catch (err) {
59 console.error('Failed to delete chat:', err);
60 }
61 };
62
63 const setSelectedDatasetsHandler = (datasets) => {
64 setSelectedDatasets(datasets);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected