preview when import from archive

This commit is contained in:
Jan Prochazka 2021-01-09 09:59:40 +01:00
parent a80c680914
commit bdb8f44895

View File

@ -455,7 +455,8 @@ export default function ImportExportConfigurator({ uploadedFile = undefined, onC
}
}, []);
const supportsPreview = !!findFileFormat(extensions, values.sourceStorageType);
const supportsPreview =
!!findFileFormat(extensions, values.sourceStorageType) || values.sourceStorageType == 'archive';
const previewFileName =
previewSource && values[`sourceFile_${previewSource}`] && values[`sourceFile_${previewSource}`].fileName;