fix listar mostrar "sin administrador"
This commit is contained in:
parent
fd16310ac9
commit
93922d0766
|
@ -142,6 +142,9 @@ const Communities = () => {
|
||||||
item.province = pList.find(p => p.code === item.province).name
|
item.province = pList.find(p => p.code === item.province).name
|
||||||
item.canton = cList.find(p => p.code === item.canton).name
|
item.canton = cList.find(p => p.code === item.canton).name
|
||||||
item.district = dList.find(p => p.code === item.district).name
|
item.district = dList.find(p => p.code === item.district).name
|
||||||
|
if(!item.id_admin){
|
||||||
|
item.name_admin = "Sin Administrador"
|
||||||
|
}
|
||||||
})
|
})
|
||||||
setCommunitiesList(await resJson.message);
|
setCommunitiesList(await resJson.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue