fix communities UI

This commit is contained in:
Eduardo Quiros 2022-09-01 16:02:50 -06:00
parent a44fe8caa2
commit b704597d54
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 29 additions and 27 deletions

View File

@ -257,6 +257,7 @@ const Communities = () => {
}) })
.catch((err) => console.log('Ocurrió un error con el fetch', err)); .catch((err) => console.log('Ocurrió un error con el fetch', err));
} else { } else {
let _communities = [...communitiesList];
let _community = { ...community }; let _community = { ...community };
_community.province = provinciaId; _community.province = provinciaId;
_community.canton = cantonId; _community.canton = cantonId;
@ -305,6 +306,7 @@ const Communities = () => {
setCommunity(emptyCommunity); setCommunity(emptyCommunity);
}) })
.catch((err) => console.log('Ocurrió un error con el fetch', err)); .catch((err) => console.log('Ocurrió un error con el fetch', err));
}
} else { } else {
setSubmitted(true); setSubmitted(true);
} }