diff --git a/src/app/components/translate_block/translate_block.component.ts b/src/app/components/translate_block/translate_block.component.ts index 8f5ea6f..58520b1 100644 --- a/src/app/components/translate_block/translate_block.component.ts +++ b/src/app/components/translate_block/translate_block.component.ts @@ -40,6 +40,7 @@ export class TranslateBlockComponent implements OnInit { private sendToTranslate(service: ETranslateService = ETranslateService.GOOGLE) { this.translateLoading = true; this.translateService.translate(this.item.english_text, service).subscribe((text) => { + if (this.translatedText) if (this.translatedText.ref) this.translatedText.ref.nativeElement.textContent = text; this.item.translated_text = text; this.isEditing = false; this.translateLoading = false;