diff --git a/source/backend/api/Pims.Api.csproj b/source/backend/api/Pims.Api.csproj index e5be4b42ac..3beff5bbc9 100644 --- a/source/backend/api/Pims.Api.csproj +++ b/source/backend/api/Pims.Api.csproj @@ -2,9 +2,9 @@ 0ef6255f-9ea0-49ec-8c65-c172304b4926 - 5.4.0-84.54 - 5.4.0-84.54 - 5.4.0.84 + 5.4.1-84.54 + 5.4.1-84.54 + 5.4.1.84 true 16BC0468-78F6-4C91-87DA-7403C919E646 net8.0 diff --git a/source/frontend/package-lock.json b/source/frontend/package-lock.json index 330f29cb76..6a6f1b5409 100644 --- a/source/frontend/package-lock.json +++ b/source/frontend/package-lock.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "5.4.0-84.0", + "version": "5.4.1-84.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/source/frontend/package.json b/source/frontend/package.json index 0a2fdbd74a..f256262b9b 100644 --- a/source/frontend/package.json +++ b/source/frontend/package.json @@ -1,6 +1,6 @@ { "name": "frontend", - "version": "5.4.0-84.54", + "version": "5.4.1-84.54", "private": true, "dependencies": { "@bcgov/bc-sans": "1.0.1", diff --git a/source/frontend/src/features/mapSideBar/project/common/ProjectHeader.tsx b/source/frontend/src/features/mapSideBar/project/common/ProjectHeader.tsx index c0ca1e6f4a..8311670837 100644 --- a/source/frontend/src/features/mapSideBar/project/common/ProjectHeader.tsx +++ b/source/frontend/src/features/mapSideBar/project/common/ProjectHeader.tsx @@ -27,8 +27,8 @@ const ProjectHeader: React.FunctionComponent - {exists(project.projectStatusTypeCode) && ( - + {exists(project?.projectStatusTypeCode) && ( + )} diff --git a/source/frontend/src/features/mapSideBar/property/tabs/propertyAssociations/LeaseAssociationContent.tsx b/source/frontend/src/features/mapSideBar/property/tabs/propertyAssociations/LeaseAssociationContent.tsx index 7c67e06bb6..4a47ddb3ad 100644 --- a/source/frontend/src/features/mapSideBar/property/tabs/propertyAssociations/LeaseAssociationContent.tsx +++ b/source/frontend/src/features/mapSideBar/property/tabs/propertyAssociations/LeaseAssociationContent.tsx @@ -70,8 +70,8 @@ export const LeaseAssociationContent: React.FunctionComponent< const tableData = orderBy( props.associations.map(x => { const lease = find(props.leases, lease => x.id === lease.id); - const leaseRenewals = props.renewals.filter(renewal => x.id === renewal.leaseId); - const calculatedExpiry = getCalculatedExpiry(lease, leaseRenewals); + const leaseRenewals = props.renewals?.filter(renewal => x.id === renewal.leaseId); + const calculatedExpiry = getCalculatedExpiry(lease, leaseRenewals ?? []); return { id: x.id?.toString() || '', linkUrl: props.linkUrlMask.replace('|id|', x.id?.toString() || ''), @@ -81,7 +81,7 @@ export const LeaseAssociationContent: React.FunctionComponent< createdByGuid: x.createdByGuid || '', createdDate: x.createdDateTime || '', status: x.status || '', - tenants: getFormattedTenants(props.tenants.filter(tenant => x.id === tenant.leaseId)), + tenants: getFormattedTenants(props.tenants?.filter(tenant => x.id === tenant.leaseId)), expiryDate: calculatedExpiry, }; }),