From 93922d07668de9351270a1731e0551ede8d68246 Mon Sep 17 00:00:00 2001 From: Mariela Date: Thu, 21 Jul 2022 14:42:22 -0600 Subject: [PATCH] fix listar mostrar "sin administrador" --- web-ui/web-react/src/components/ComunidadViviendas.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web-ui/web-react/src/components/ComunidadViviendas.js b/web-ui/web-react/src/components/ComunidadViviendas.js index c1e91666..025ae00a 100644 --- a/web-ui/web-react/src/components/ComunidadViviendas.js +++ b/web-ui/web-react/src/components/ComunidadViviendas.js @@ -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); }