Skip to content

Commit

Permalink
fix: fix list action populate issue (#1604)(@AstaDK)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaDK authored Jan 17, 2024
1 parent ef1b627 commit 7bea2b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ReferenceValue: React.FC<Props> = (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',
})
Expand Down

0 comments on commit 7bea2b2

Please sign in to comment.