From d9daf7e5798af8f45e71ea9dc1d802eda15b6dd2 Mon Sep 17 00:00:00 2001 From: Sonarly Claude Code Date: Thu, 12 Mar 2026 09:10:08 +0000 Subject: [PATCH] chore: additional changes for Google reCAPTCHA fails for users in China due to b --- .../http-request-action/hooks/useHttpRequestOutputSchema.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useHttpRequestOutputSchema.ts b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useHttpRequestOutputSchema.ts index ff0d17c67f2..d944968ae1d 100644 --- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useHttpRequestOutputSchema.ts +++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/http-request-action/hooks/useHttpRequestOutputSchema.ts @@ -3,7 +3,6 @@ import { type BaseOutputSchemaV2 } from 'twenty-shared/workflow'; import { parseAndValidateVariableFriendlyStringifiedJson } from '@/workflow/utils/parseAndValidateVariableFriendlyStringifiedJson'; import { isNonEmptyString } from '@sniptt/guards'; import { useState } from 'react'; -import { isDefined } from 'twenty-shared/utils'; import { convertOutputSchemaToJson } from '@/workflow/workflow-steps/workflow-actions/http-request-action/utils/convertOutputSchemaToJson'; import { getHttpRequestOutputSchema } from '@/workflow/workflow-steps/workflow-actions/http-request-action/utils/getHttpRequestOutputSchema'; @@ -19,8 +18,7 @@ export const useHttpRequestOutputSchema = ({ readonly, }: UseHttpRequestOutputSchemaProps) => { const [outputSchema, setOutputSchema] = useState( - isDefined(action.settings.outputSchema) && - Object.keys(action.settings.outputSchema).length + Object.keys(action.settings.outputSchema).length ? JSON.stringify( convertOutputSchemaToJson( action.settings.outputSchema as BaseOutputSchemaV2,