diff --git a/backend/src/pages/Properties.tsx b/backend/src/pages/Properties.tsx index 46fb835a..d4320a29 100644 --- a/backend/src/pages/Properties.tsx +++ b/backend/src/pages/Properties.tsx @@ -22,7 +22,7 @@ function Properties() { const [user, setUser] = useState() const [admin, setAdmin] = useState(false) const [allAgencies, setAllAgencies] = useState([]) - const [agencies, setAgencies] = useState([]) + const [agencies, setAgencies] = useState() const [keyword, setKeyword] = useState('') const [rowCount, setRowCount] = useState(0) const [loading, setLoading] = useState(true) diff --git a/frontend/src/pages/Properties.tsx b/frontend/src/pages/Properties.tsx index a265d9dc..c8344c06 100644 --- a/frontend/src/pages/Properties.tsx +++ b/frontend/src/pages/Properties.tsx @@ -22,7 +22,7 @@ function Properties() { const [from, setFrom] = useState() const [to, setTo] = useState() const [allAgencies, setAllAgencies] = useState([]) - const [agencies, setAgencies] = useState([]) + const [agencies, setAgencies] = useState() const [loading, setLoading] = useState(true) const [propertyTypes, setPropertyTypes] = useState(movininHelper.getAllPropertyTypes()) const [rentalTerms, setRentalTerms] = useState(movininHelper.getAllRentalTerms())