Skip to content

Commit

Permalink
fix: use id as title fallback for complex schemas (#1039)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
AceTheCreator and derberg authored Aug 21, 2024
1 parent 544897e commit 20c33eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/src/components/Schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export const Schema: React.FunctionComponent<Props> = ({
idx,
'Adheres to',
'Or to',
s.title(),
s.title() ?? s.id(),
)}
/>
))}
Expand All @@ -304,7 +304,7 @@ export const Schema: React.FunctionComponent<Props> = ({
idx,
'Can adhere to',
'Or to',
s.title(),
s.title() ?? s.id(),
)}
/>
))}
Expand All @@ -318,7 +318,7 @@ export const Schema: React.FunctionComponent<Props> = ({
idx,
'Consists of',
'And of',
s.title(),
s.title() ?? s.id(),
)}
/>
))}
Expand Down

0 comments on commit 20c33eb

Please sign in to comment.