diff --git a/web-ui/web-react/src/components/AdministradoresComunidad.js b/web-ui/web-react/src/components/AdministradoresComunidad.js
index 06416d5d..3eae0d1f 100644
--- a/web-ui/web-react/src/components/AdministradoresComunidad.js
+++ b/web-ui/web-react/src/components/AdministradoresComunidad.js
@@ -26,6 +26,9 @@ const AdministradoresComunidad = () => {
const [deleteAdminsCommunitiesDialog, setDeleteAdminsCommunitiesDialog] = useState(false);
const toast = useRef(null);
const dt = useRef(null);
+ const [communitiesList, setCommunitiesList] = useState([]);
+ const [communityId, setCommunityId] = useState([]);
+
let emptyAdminCommunity = {
_id: null,
@@ -38,7 +41,7 @@ const AdministradoresComunidad = () => {
community_id: '',
community_name: '',
user_type: '2',
- status: ''
+ status: '1'
};
async function listaAdmin() {
@@ -152,9 +155,6 @@ const AdministradoresComunidad = () => {
setDeleteAdminCommunityDialog(true);
}
- const confirmDeleteSelected = () => {
- setDeleteAdminsCommunitiesDialog(true);
- }
const actionsAdminCommunity = (rowData) => {
return (
@@ -164,35 +164,6 @@ const AdministradoresComunidad = () => {
);
}
- const leftToolbarTemplate = () => {
- return (
-