diff --git a/src/frontend/components/property-type/reference/reference-value.tsx b/src/frontend/components/property-type/reference/reference-value.tsx index 2fb9014c0..4b62ae5dc 100644 --- a/src/frontend/components/property-type/reference/reference-value.tsx +++ b/src/frontend/components/property-type/reference/reference-value.tsx @@ -27,7 +27,7 @@ const ReferenceValue: React.FC = (props) => { throw new Error(`property: "${property.path}" does not have a reference`) } - if (populated && populated.recordActions.find((a) => a.name === 'show')) { + if (populated?.recordActions?.find((a) => a.name === 'show')) { const href = h.recordActionUrl({ resourceId: property.reference, recordId: refId, actionName: 'show', })