We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 031431b commit 0752269Copy full SHA for 0752269
library/src/components/Schema.tsx
@@ -377,13 +377,10 @@ interface SchemaPropertiesProps {
377
const SchemaProperties: React.FunctionComponent<SchemaPropertiesProps> = ({
378
schema,
379
}) => {
380
- const properties = schema.properties();
381
- if (properties === undefined || !Object.keys(properties)) {
382
- return null;
383
- }
+ const properties = schema.properties() ?? {};
+ const patternProperties = schema.patternProperties() ?? {};
384
385
const required = schema.required() ?? [];
386
- const patternProperties = schema.patternProperties();
387
388
return (
389
<>
0 commit comments