mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-23 09:26:24 +00:00
Update object_translations.ts
This commit is contained in:
parent
2f03ca8ff8
commit
4116f3a206
@ -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')
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user