MCPcopy Create free account
hub / github.com/caesarHQ/textSQL / clearAll

Function clearAll

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

Source from the content-addressed store, hash-verified

103 const urlSearch = queryParameters.get('s')
104
105 const clearAll = () => {
106 setQuery('')
107 setSQL('')
108 setErrorMessage('')
109 setCities([])
110 setZipcodes([])
111 setZipcodesFormatted([])
112 setPolygons([])
113 setPoints([])
114 setTableInfo({ rows: [], columns: [] })
115 setTitle(
116 props.version === 'Census' ? 'Census GPT' : 'San Francisco GPT'
117 )
118 setVisualization('map')
119 setSqlExplanationIsOpen(false)
120 setSqlExplanation()
121 setTableNames()
122 setIsLoading(false)
123 setSearchParams({})
124 }
125
126 const clearAllButQuery = () => {
127 setSQL('')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected