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