Skip to content

Commit 62fc55f

Browse files
committed
Fix propertyUrl for TenantView
`getTenant` was still trying to access the property by name. Updated to access property by id
1 parent eac3022 commit 62fc55f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/Tenant/TenantView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const Tenant = () => {
113113
const getTenant = async () => {
114114
const tenantResponse = await client.get(`/api/tenants/${id}`);
115115
const tenant = tenantResponse.data;
116-
const propertyUrl = `/api/properties/${tenant.propertyName}`;
116+
const propertyUrl = `/api/properties/${tenant.propertyID}`;
117117
const propertyResponse = await client.get(propertyUrl);
118118
const property = propertyResponse.data;
119119
const ticketsResponse = await client.get(`/api/tickets?tenant=${tenant.id}`);

0 commit comments

Comments
 (0)