diff --git a/apps/api/src/app/upload/dtos/upload-request.dto.ts b/apps/api/src/app/upload/dtos/upload-request.dto.ts index fbd25931a..84209f177 100644 --- a/apps/api/src/app/upload/dtos/upload-request.dto.ts +++ b/apps/api/src/app/upload/dtos/upload-request.dto.ts @@ -37,7 +37,7 @@ export class UploadRequestDto { required: false, }) @IsOptional() - @IsJSON() + @IsString() extra?: string; @ApiProperty({ diff --git a/apps/web/components/imports/destination/WidgetConfigurationModal/WidgetConfigurationModal.tsx b/apps/web/components/imports/destination/WidgetConfigurationModal/WidgetConfigurationModal.tsx index ee72ff30a..21ce5d2c9 100644 --- a/apps/web/components/imports/destination/WidgetConfigurationModal/WidgetConfigurationModal.tsx +++ b/apps/web/components/imports/destination/WidgetConfigurationModal/WidgetConfigurationModal.tsx @@ -34,7 +34,7 @@ export function WidgetConfigurationModal({ onConfigSubmit, isLoading }: WidgetCo const onSubmit = (data: WidgetConfigFormData) => { onConfigSubmit({ authHeaderValue: data.authHeaderValue, - extra: data.extraData, + extra: JSON.parse(data.extraData || '{}'), }); };