Update object_translations.ts

This commit is contained in:
baozhoutao 2021-12-03 17:29:06 +08:00
parent 2f03ca8ff8
commit 4116f3a206

View File

@ -34,5 +34,7 @@ export const addObjectTranslationsFiles = async (filePath: string)=>{
export const getObjectTranslations = async ()=>{
const metadataObjectTranslations = await getSteedosSchema().metadataBroker.call('translations.getObjectTranslations')
return _.pluck(metadataObjectTranslations, 'metadata')
if(metadataObjectTranslations){
return _.pluck(metadataObjectTranslations, 'metadata')
}
}