Skip to content

Commit 1a64cdb

Browse files
committed
OpenConceptLab/ocl_issues#2163 | getting just list of locales for the repo version
1 parent 9a75748 commit 1a64cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/map-projects/MapProject.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,8 @@ const MapProject = () => {
789789
if(!url)
790790
return
791791
setIsLoadingLocales(true)
792-
APIService.new().overrideURL(url).appendToUrl('summary/').get(null, null, {verbose: true, distribution: 'name_locale'}).then(response => {
793-
setLocales(map(response?.data?.distribution?.name_locale, 'locale'))
792+
APIService.new().overrideURL(url).appendToUrl('summary/').get(null, null, {verbose: true, distribution: 'name_locale_list'}).then(response => {
793+
setLocales(response?.data?.distribution?.name_locale_list || [])
794794
setIsLoadingLocales(false)
795795
})
796796
}

0 commit comments

Comments
 (0)