chore: additional changes for Google reCAPTCHA fails for users in China due to b

This commit is contained in:
Sonarly Claude Code
2026-03-12 09:10:08 +00:00
parent dc97343e07
commit d9daf7e579
@@ -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<string | null>(
isDefined(action.settings.outputSchema) &&
Object.keys(action.settings.outputSchema).length
Object.keys(action.settings.outputSchema).length
? JSON.stringify(
convertOutputSchemaToJson(
action.settings.outputSchema as BaseOutputSchemaV2,