diff --git a/src/entities/transfer/ui/show/fileSourceParamsShow.tsx b/src/entities/transfer/ui/show/fileSourceParamsShow.tsx index fcd55fc..ecc4f1b 100644 --- a/src/entities/transfer/ui/show/fileSourceParamsShow.tsx +++ b/src/entities/transfer/ui/show/fileSourceParamsShow.tsx @@ -18,9 +18,7 @@ const FileSourceParamsShow = ({ }) => { const processedData = { ...data.source_params, - source_params: { - file_format: JSON.stringify(data.source_params.file_format), - }, + file_format: JSON.stringify(data.source_params.file_format), }; return ( @@ -28,20 +26,20 @@ const FileSourceParamsShow = ({ {/* TODO: the field with file_format is complex - there must be a type (drop-down list, like connection types), plus child fields (delimiter, quote, header, etc.) */} diff --git a/src/entities/transfer/ui/show/fileTargetParamsShow.tsx b/src/entities/transfer/ui/show/fileTargetParamsShow.tsx index 4a2b5a2..44aacea 100644 --- a/src/entities/transfer/ui/show/fileTargetParamsShow.tsx +++ b/src/entities/transfer/ui/show/fileTargetParamsShow.tsx @@ -18,9 +18,7 @@ const FileTargetParamsShow = ({ }) => { const processedData = { ...data.target_params, - target_params: { - file_format: JSON.stringify(data.target_params.file_format), - }, + file_format: JSON.stringify(data.target_params.file_format), }; return ( @@ -28,20 +26,20 @@ const FileTargetParamsShow = ({ {/* TODO: the field with file_format is complex - there must be a type (drop-down list, like connection types), plus child fields (delimiter, quote, header, etc.) */} diff --git a/src/widgets/transfer/ui/transferShow.tsx b/src/widgets/transfer/ui/transferShow.tsx index e0b20dc..6dc1904 100644 --- a/src/widgets/transfer/ui/transferShow.tsx +++ b/src/widgets/transfer/ui/transferShow.tsx @@ -85,7 +85,7 @@ const TransferShow = () => { label={"Target (schema.table)"} /> )} - {!dbTypes.includes(data.source_params.type) && ( + {!dbTypes.includes(data.target_params.type) && (