make tenantsList a callback
This commit is contained in:
parent
b81a38ee4e
commit
589a56257e
|
@ -87,7 +87,7 @@ const Inquilinos = () => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
tenantsList()
|
tenantsList()
|
||||||
}, [])
|
}, [tenantsList])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getCommunites()
|
getCommunites()
|
||||||
|
|
Loading…
Reference in New Issue