(chatId)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected