diff --git a/ui/src/components/LegacyCms/Actions/LoadFileFormat.tsx b/ui/src/components/LegacyCms/Actions/LoadFileFormat.tsx index 990355d08..8083f1a70 100644 --- a/ui/src/components/LegacyCms/Actions/LoadFileFormat.tsx +++ b/ui/src/components/LegacyCms/Actions/LoadFileFormat.tsx @@ -58,9 +58,7 @@ const LoadFileFormat = (_props: LoadFileFormatProps) => { isactive: true, title: extractedFormat === 'zip' ? 'Zip' : extractedFormat.toUpperCase() }; - - console.info('LoadFileFormat: DISPATCHING FILE FORMAT:', fileFormatObj); - + dispatch(updateNewMigrationData({ ...newMigrationData, legacy_cms: { @@ -69,31 +67,29 @@ const LoadFileFormat = (_props: LoadFileFormatProps) => { } })); - setFileIcon(fileFormatObj.title); + setFileIcon(fileFormatObj?.title); } } else if (!isEmptyString(currentFormat)) { setFileIcon(currentFormat); } }, [newMigrationData?.legacy_cms?.uploadedFile?.file_details?.localPath, newMigrationData?.legacy_cms?.selectedFileFormat, dispatch, newMigrationData]); - return (