Fix build errors for updated listing fields and admin effect deps
This commit is contained in:
parent
1865071bee
commit
c4e503989a
2 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ export default function AdminUsersPage() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => setError(t('adminRequired')));
|
.catch(() => setError(t('adminRequired')));
|
||||||
}, []);
|
}, [t]);
|
||||||
|
|
||||||
async function setUserRole(userId: string, role: string) {
|
async function setUserRole(userId: string, role: string) {
|
||||||
setMessage(null);
|
setMessage(null);
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,7 @@ export async function GET(req: Request) {
|
||||||
hasBarbecue: listing.hasBarbecue,
|
hasBarbecue: listing.hasBarbecue,
|
||||||
hasMicrowave: listing.hasMicrowave,
|
hasMicrowave: listing.hasMicrowave,
|
||||||
hasFreeParking: listing.hasFreeParking,
|
hasFreeParking: listing.hasFreeParking,
|
||||||
evCharging: listing.evCharging,
|
evChargingAvailable: listing.evChargingAvailable,
|
||||||
maxGuests: listing.maxGuests,
|
maxGuests: listing.maxGuests,
|
||||||
bedrooms: listing.bedrooms,
|
bedrooms: listing.bedrooms,
|
||||||
beds: listing.beds,
|
beds: listing.beds,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue