Browse Source

chore: remove verbose log

sam hoang 1 year ago
parent
commit
01c858c0b9
1 changed files with 0 additions and 4 deletions
  1. 0 4
      webview-ui/src/context/ExtensionStateContext.tsx

+ 0 - 4
webview-ui/src/context/ExtensionStateContext.tsx

@@ -118,8 +118,6 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
 
 
 	const onUpdateApiConfig = useCallback((apiConfig: ApiConfiguration) => {
 	const onUpdateApiConfig = useCallback((apiConfig: ApiConfiguration) => {
 		setState((currentState) => {
 		setState((currentState) => {
-			console.log("onUpdateApiConfig", currentState, apiConfig)
-
 			vscode.postMessage({
 			vscode.postMessage({
 				type: "upsertApiConfiguration",
 				type: "upsertApiConfiguration",
 				text: currentState.currentApiConfigName,
 				text: currentState.currentApiConfigName,
@@ -132,8 +130,6 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
 	const handleInputChange = useCallback(
 	const handleInputChange = useCallback(
 		(field: keyof ApiConfiguration) => (event: any) => {
 		(field: keyof ApiConfiguration) => (event: any) => {
 			setState((currentState) => {
 			setState((currentState) => {
-				console.log("handleInputChange", currentState, event)
-
 				vscode.postMessage({
 				vscode.postMessage({
 					type: "upsertApiConfiguration",
 					type: "upsertApiConfiguration",
 					text: currentState.currentApiConfigName,
 					text: currentState.currentApiConfigName,