fix listar mostrar "sin administrador"

This commit is contained in:
Mariela 2022-07-21 14:42:22 -06:00
parent fd16310ac9
commit 93922d0766
1 changed files with 3 additions and 0 deletions

View File

@ -142,6 +142,9 @@ const Communities = () => {
item.province = pList.find(p => p.code === item.province).name
item.canton = cList.find(p => p.code === item.canton).name
item.district = dList.find(p => p.code === item.district).name
if(!item.id_admin){
item.name_admin = "Sin Administrador"
}
})
setCommunitiesList(await resJson.message);
}