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

Function handleDeleteConnection

src/components/CreateConnectionModal.tsx:236–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

234 };
235
236 const handleDeleteConnection = () => {
237 connectionStore.clearConnection((item) => item.id !== connection.id);
238 if (connectionStore.currentConnectionCtx?.connection.id === connection.id) {
239 connectionStore.setCurrentConnectionCtx(undefined);
240 }
241 close();
242 };
243
244 return (
245 <>

Callers 1

CreateConnectionModalFunction · 0.85

Calls 1

closeFunction · 0.70

Tested by

no test coverage detected