From 20c33eb1b4e5e92631bbcc03fe3dccb66890772a Mon Sep 17 00:00:00 2001 From: Ace <40604284+AceTheCreator@users.noreply.github.com> Date: Wed, 21 Aug 2024 14:43:16 -0500 Subject: [PATCH] fix: use id as title fallback for complex schemas (#1039) Co-authored-by: Lukasz Gornicki --- library/src/components/Schema.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/src/components/Schema.tsx b/library/src/components/Schema.tsx index 2f632085c..0ccb5bb0d 100644 --- a/library/src/components/Schema.tsx +++ b/library/src/components/Schema.tsx @@ -290,7 +290,7 @@ export const Schema: React.FunctionComponent = ({ idx, 'Adheres to', 'Or to', - s.title(), + s.title() ?? s.id(), )} /> ))} @@ -304,7 +304,7 @@ export const Schema: React.FunctionComponent = ({ idx, 'Can adhere to', 'Or to', - s.title(), + s.title() ?? s.id(), )} /> ))} @@ -318,7 +318,7 @@ export const Schema: React.FunctionComponent = ({ idx, 'Consists of', 'And of', - s.title(), + s.title() ?? s.id(), )} /> ))}