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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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