Skip to content

Commit 14df668

Browse files
feat: Added the parsing of the extra JSON object (#1102)
2 parents c48e694 + 5c362fa commit 14df668

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/api/src/app/upload/dtos/upload-request.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class UploadRequestDto {
3737
required: false,
3838
})
3939
@IsOptional()
40-
@IsJSON()
40+
@IsString()
4141
extra?: string;
4242

4343
@ApiProperty({

apps/web/components/imports/destination/WidgetConfigurationModal/WidgetConfigurationModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function WidgetConfigurationModal({ onConfigSubmit, isLoading }: WidgetCo
3434
const onSubmit = (data: WidgetConfigFormData) => {
3535
onConfigSubmit({
3636
authHeaderValue: data.authHeaderValue,
37-
extra: data.extraData,
37+
extra: JSON.parse(data.extraData || '{}'),
3838
});
3939
};
4040

0 commit comments

Comments
 (0)