Update ObjectInfo component to conditionally include showHyperlink prop in ObjectProperty, enhancing flexibility in rendering object properties.

This commit is contained in:
Tom Butcher 2025-09-05 23:20:19 +01:00
parent f2e7959a00
commit 0eac407db4

View File

@ -42,6 +42,9 @@ const ObjectInfo = ({
items = items.filter((item) => item.required === required)
}
if (showHyperlink) {
objectPropertyProps = { ...objectPropertyProps, showHyperlink }
}
// Filter items based on visibleProperties
// If a property key exists in visibleProperties and is false, hide it
items = items.filter((item) => {
@ -67,7 +70,6 @@ const ObjectInfo = ({
<ObjectProperty
{...item}
{...objectPropertyProps}
showHyperlink={showHyperlink}
isEditing={isEditing}
objectData={objectData}
/>