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,