mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 01:08:50 +01:00
Fix detectedSource not returned from API sometimes
This commit is contained in:
parent
2b4efc6f04
commit
48c86d7090
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ function TranslationBlock({
|
|||
return {
|
||||
provider: 'lingva',
|
||||
content: res.translation,
|
||||
detectedSourceLanguage: res.info.detectedSource,
|
||||
detectedSourceLanguage: res.info?.detectedSource,
|
||||
info: res.info,
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue