change empty to const
This commit is contained in:
parent
a089525afc
commit
1d684d74fd
|
@ -16,7 +16,7 @@ import { faHashtag } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { faCircleQuestion } from '@fortawesome/free-solid-svg-icons';
|
import { faCircleQuestion } from '@fortawesome/free-solid-svg-icons';
|
||||||
|
|
||||||
const Communities = () => {
|
const Communities = () => {
|
||||||
let emptyCommunity = {
|
const emptyCommunity = {
|
||||||
_id: null,
|
_id: null,
|
||||||
name: '',
|
name: '',
|
||||||
province: provinciaId,
|
province: provinciaId,
|
||||||
|
@ -214,7 +214,6 @@ const Communities = () => {
|
||||||
number_house: codeHouses + (i + 1),
|
number_house: codeHouses + (i + 1),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// console.log(houses)
|
|
||||||
fetch('http://localhost:4000/community/createCommunity', {
|
fetch('http://localhost:4000/community/createCommunity', {
|
||||||
cache: 'no-cache',
|
cache: 'no-cache',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
Loading…
Reference in New Issue