fix(Property): Check for a property type excerpt (#9365)

This commit is contained in:
Jiralite
2023-04-11 13:12:03 +01:00
committed by GitHub
parent dcf58d8140
commit 6a221a9676

View File

@@ -51,10 +51,14 @@ export function Property({
{item.displayName} {item.displayName}
{item.isOptional ? '?' : ''} {item.isOptional ? '?' : ''}
</h4> </h4>
<h4 className="font-mono text-lg font-bold">{separator}</h4> {item.propertyTypeExcerpt.text ? (
<h4 className="break-all font-mono text-lg font-bold"> <>
<ExcerptText excerpt={item.propertyTypeExcerpt} model={item.getAssociatedModel()!} /> <h4 className="font-mono text-lg font-bold">{separator}</h4>
</h4> <h4 className="break-all font-mono text-lg font-bold">
<ExcerptText excerpt={item.propertyTypeExcerpt} model={item.getAssociatedModel()!} />
</h4>
</>
) : null}
</div> </div>
</div> </div>
{hasSummary || inheritedFrom ? ( {hasSummary || inheritedFrom ? (