From 7bea2b26cd76dc5ed3f39c39454a4e297d5cbc7d Mon Sep 17 00:00:00 2001 From: Nghiep Nguyen <80238484+AstaDK@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:45:32 +0700 Subject: [PATCH] fix: fix list action populate issue (#1604)(@AstaDK) --- .../components/property-type/reference/reference-value.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', })