Update ObjectInfo component to conditionally include showHyperlink prop in ObjectProperty, enhancing flexibility in rendering object properties.
This commit is contained in:
parent
f2e7959a00
commit
0eac407db4
@ -42,6 +42,9 @@ const ObjectInfo = ({
|
|||||||
items = items.filter((item) => item.required === required)
|
items = items.filter((item) => item.required === required)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (showHyperlink) {
|
||||||
|
objectPropertyProps = { ...objectPropertyProps, showHyperlink }
|
||||||
|
}
|
||||||
// Filter items based on visibleProperties
|
// Filter items based on visibleProperties
|
||||||
// If a property key exists in visibleProperties and is false, hide it
|
// If a property key exists in visibleProperties and is false, hide it
|
||||||
items = items.filter((item) => {
|
items = items.filter((item) => {
|
||||||
@ -67,7 +70,6 @@ const ObjectInfo = ({
|
|||||||
<ObjectProperty
|
<ObjectProperty
|
||||||
{...item}
|
{...item}
|
||||||
{...objectPropertyProps}
|
{...objectPropertyProps}
|
||||||
showHyperlink={showHyperlink}
|
|
||||||
isEditing={isEditing}
|
isEditing={isEditing}
|
||||||
objectData={objectData}
|
objectData={objectData}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user