fix: access property via propertyInformation nested object
All checks were successful
Build frontend / build (push) Successful in 48s

This commit is contained in:
Claw AI
2026-04-05 18:46:47 +00:00
parent 2346f518ce
commit f925af0272
2 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ export default function OwnerReservationRequestsPage() {
if (!r.property && r.propertyId) { if (!r.property && r.propertyId) {
try { try {
const propRes = await getRentProperty(r.propertyId); const propRes = await getRentProperty(r.propertyId);
r.property = propRes?.data || propRes || null; r.property = propRes?.data?.propertyInformation || propRes?.data || propRes || null;
} catch (e) { } catch (e) {
console.warn('Failed to load property', r.propertyId); console.warn('Failed to load property', r.propertyId);
} }

View File

@ -236,7 +236,7 @@ export default function UserReservationsPage() {
if (!r.property && r.propertyId) { if (!r.property && r.propertyId) {
try { try {
const propRes = await getRentProperty(r.propertyId); const propRes = await getRentProperty(r.propertyId);
r.property = propRes?.data || propRes || null; r.property = propRes?.data?.propertyInformation || propRes?.data || propRes || null;
} catch (e) { } catch (e) {
console.warn('Failed to load property', r.propertyId); console.warn('Failed to load property', r.propertyId);
} }