From 2c3aa0771d8a59b24a377ffd6f05a2a10d000e1f Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Tue, 30 May 2023 07:03:34 -0700 Subject: [PATCH] fix: combiners with differing types render nothing for some children (#222) * fix: combiners with differing types render nothing for some children * fix: prettier updates --- src/__tests__/__snapshots__/index.spec.tsx.snap | 7 +++++++ src/components/SchemaRow/TopLevelSchemaRow.tsx | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/__tests__/__snapshots__/index.spec.tsx.snap b/src/__tests__/__snapshots__/index.spec.tsx.snap index 7e5780ed..234f99a0 100644 --- a/src/__tests__/__snapshots__/index.spec.tsx.snap +++ b/src/__tests__/__snapshots__/index.spec.tsx.snap @@ -330,6 +330,13 @@ exports[`HTML Output given array with oneOf containing items, should merge it co
(one of)
+
+
+
+
array[string]
+
+
+
diff --git a/src/components/SchemaRow/TopLevelSchemaRow.tsx b/src/components/SchemaRow/TopLevelSchemaRow.tsx index 9e101043..7a58eba9 100644 --- a/src/components/SchemaRow/TopLevelSchemaRow.tsx +++ b/src/components/SchemaRow/TopLevelSchemaRow.tsx @@ -88,6 +88,8 @@ export const TopLevelSchemaRow = ({ currentNestingLevel={nestingLevel} parentNodeId={nodeId} /> + ) : combiner ? ( + ) : null} );