MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / handleTableCheckboxChange

Function handleTableCheckboxChange

src/components/ConnectionSidebar.tsx:181–187  ·  view source on GitHub ↗
(tableName: string, value: boolean)

Source from the content-addressed store, hash-verified

179 };
180
181 const handleTableCheckboxChange = async (tableName: string, value: boolean) => {
182 if (value) {
183 conversationStore.updateSelectedTablesNameList([...selectedTableNameList, tableName]);
184 } else {
185 conversationStore.updateSelectedTablesNameList(selectedTableNameList.filter((name) => name !== tableName));
186 }
187 };
188
189 const handleSchemaNameSelect = async (schemaName: string) => {
190 // need to empty selectedTableNameList when schemaName changed. because selectedTableNameList may not exist in new schema.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected