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

Function close

src/components/QueryDrawer.tsx:98–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 };
97
98 const close = () => {
99 if (originalStatement !== statement && context?.messageId) {
100 messageStore.updateStatement(context?.messageId, originalStatement, statement);
101 }
102 queryStore.toggleDrawer(false);
103 };
104
105 return (
106 <Drawer open={queryStore.showDrawer} anchor="right" className="w-full" onClose={close}>

Callers 6

handleUpsertConnectionFunction · 0.70
handleDeleteConnectionFunction · 0.70
handleClearDataFunction · 0.70
handleClearMessagesFunction · 0.70
handleSaveEditFunction · 0.70
ActionConfirmModalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected