diff --git a/src-tauri/vendored/plugins/auth-oauth2/build/index.js b/src-tauri/vendored/plugins/auth-oauth2/build/index.js index a933be5b..cc26357a 100644 --- a/src-tauri/vendored/plugins/auth-oauth2/build/index.js +++ b/src-tauri/vendored/plugins/auth-oauth2/build/index.js @@ -593,7 +593,6 @@ var plugin = { const headerPrefix = optionalString(values, "headerPrefix") ?? ""; const grantType = requiredString(values, "grantType"); const credentialsInBody = values.credentials === "body"; - console.log("Performing OAuth", values); let token; if (grantType === "authorization_code") { const authorizationUrl = requiredString(values, "authorizationUrl"); diff --git a/src-web/components/DynamicForm.tsx b/src-web/components/DynamicForm.tsx index 3f23a024..2f7527bf 100644 --- a/src-web/components/DynamicForm.tsx +++ b/src-web/components/DynamicForm.tsx @@ -219,18 +219,11 @@ function TextArg({ autocompleteVariables: boolean; stateKey: string; }) { - const handleChange = useCallback( - (value: string) => { - onChange(value === '' ? DYNAMIC_FORM_NULL_ARG : value); - }, - [onChange], - ); - return ( { - onChange(value === '' ? DYNAMIC_FORM_NULL_ARG : value); - }, - [onChange], - ); - const id = `input-${arg.name}`; // Read-only editor force refresh for every defaultValue change @@ -296,10 +282,10 @@ function EditorArg({ autocomplete={arg.completionOptions ? { options: arg.completionOptions } : undefined} disabled={arg.disabled} language={arg.language} - onChange={handleChange} + onChange={onChange} heightMode="auto" defaultValue={value === DYNAMIC_FORM_NULL_ARG ? arg.defaultValue : value} - placeholder={arg.placeholder ?? arg.defaultValue ?? ''} + placeholder={arg.placeholder ?? undefined} useTemplating={useTemplating} autocompleteVariables={autocompleteVariables} stateKey={stateKey} diff --git a/src-web/components/HttpAuthenticationEditor.tsx b/src-web/components/HttpAuthenticationEditor.tsx index e3cac026..2ee2ab88 100644 --- a/src-web/components/HttpAuthenticationEditor.tsx +++ b/src-web/components/HttpAuthenticationEditor.tsx @@ -27,7 +27,6 @@ export function HttpAuthenticationEditor({ request }: Props) { const handleChange = useCallback( (authentication: Record) => { - console.log('UPDATE', authentication); if (request.model === 'http_request') { updateHttpRequest.mutate({ id: request.id,