Skip to content

Commit

Permalink
fix: combiners with differing types render nothing for some children (#…
Browse files Browse the repository at this point in the history
…222)

* fix: combiners with differing types render nothing for some children

* fix: prettier updates
BelfordZ authored and P0lip committed May 30, 2023
1 parent 58dfd15 commit 2c3aa07
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/__tests__/__snapshots__/index.spec.tsx.snap
Original file line number Diff line number Diff line change
@@ -330,6 +330,13 @@ exports[`HTML Output given array with oneOf containing items, should merge it co
</div>
<div>(one of)</div>
</div>
<div data-id=\\"b55b1e932485c\\">
<div>
<div>
<div><span>array[string]</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
2 changes: 2 additions & 0 deletions src/components/SchemaRow/TopLevelSchemaRow.tsx
Original file line number Diff line number Diff line change
@@ -88,6 +88,8 @@ export const TopLevelSchemaRow = ({
currentNestingLevel={nestingLevel}
parentNodeId={nodeId}
/>
) : combiner ? (
<SchemaRow schemaNode={selectedChoice.type} nestingLevel={nestingLevel} />
) : null}
</>
);

0 comments on commit 2c3aa07

Please sign in to comment.