From a5468fb7bb99fcfe33724af939b1a589c1219052 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 24 Sep 2020 13:58:41 +0300 Subject: [PATCH] fix: fix displaying top-level object without any properties --- src/components/Schema/Schema.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Schema/Schema.tsx b/src/components/Schema/Schema.tsx index 91553ce8..ef774004 100644 --- a/src/components/Schema/Schema.tsx +++ b/src/components/Schema/Schema.tsx @@ -65,7 +65,10 @@ export class Schema extends React.Component> { switch (type) { case 'object': - return ; + if (schema.fields?.length) { + return ; + } + break; case 'array': return ; }