MCPcopy Index your code
hub / github.com/caesarHQ/textSQL / clearAllButQuery

Function clearAllButQuery

client/censusGPT/src/App.js:126–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 }
125
126 const clearAllButQuery = () => {
127 setSQL('')
128 setErrorMessage('')
129 setZipcodes([])
130 setZipcodesFormatted([])
131 setPoints([])
132 setTableInfo({ rows: [], columns: [] })
133 setTitle(
134 props.version === 'Census' ? 'Census GPT' : 'San Francisco GPT'
135 )
136 setVisualization('map')
137 setSqlExplanationIsOpen(false)
138 setSqlExplanation()
139 setTableNames()
140 setIsLoading(false)
141 setSuggestedQuery(null)
142 }
143
144 const clearMapLayers = () => {
145 setCities([])

Callers 1

fetchBackendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected