make tenantsList a callback

This commit is contained in:
Eduardo Quiros 2022-08-04 00:31:21 -06:00
parent b81a38ee4e
commit 589a56257e
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ const Inquilinos = () => {
useEffect(() => {
tenantsList()
}, [])
}, [tenantsList])
useEffect(() => {
getCommunites()