Fix machine translations export

This commit is contained in:
Simon Prévost 2021-06-23 10:14:20 -04:00
parent 5961076887
commit 793efc39d4
2 changed files with 1024 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -157,8 +157,9 @@ export default class MachineTranslationsTranslateUploadForm extends Component<
@action
exportFile() {
if (!this.file) return;
const blob = new Blob([this.fileContent as BlobPart], {
if (!this.file || !this.args.translatedFileContent) return;
const blob = new Blob([this.args.translatedFileContent as BlobPart], {
type: 'charset=utf-8',
});